New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inconsistency in http.server.test #68962
Comments
In http.server.test, it still say "This runs an HTTP server on port 8000 (or the first command line argument).", but it won't read command line argument any more. since this commit (https://hg.python.org/cpython/rev/935a656359ae) |
Patch looks okay to me, although another option could be to move the argument parsing back into the test() function, where it was originally. BTW I don’t think the 3.3 branch is open to fixes like this any more. |
I'm not quite sure we should put argument parsing back into the test() function or just fix docstring. It already expose port and bind through function arguments. It looks wierd to me to have function arguments & CLI arguments modifying the same variable in the same time. If we want to move argument parsing back, I think we should clean the function parameters. In this way, the docstring of test function still need some update, though. (we have much more CLI arguments now) |
Yeah you are probably right. This way keeps things simple. |
New changeset d9e0c82d8653 by Robert Collins in branch '3.4': New changeset 845c79097c21 by Robert Collins in branch '3.5': New changeset a8de693ebe66 by Robert Collins in branch 'default': |
Thanks for the patch. Applied to 3.4 and up. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: