Sorry, something went wrong.
There was a problem hiding this comment.
Just adding a blocking review to ensure the PR isn't merged until after the PEP has been reviewed.
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request. |
Sorry, something went wrong.
There was a problem hiding this comment.
This won't interact correctly with the interpreter's -i switch, as that always drops you into the original __main__ namespace, even if it's been rebound in sys.modules by the application code.
Sorry, something went wrong.
|
@cameron-simpson This is looking pretty good, but there are still some backwards compatibility risks that we're going to have to investigate before the PEP can be approved. I'm officially the design & implementation reviewer for this PEP now, so I added the two key questions/concerns that I'm currently aware of to a new section: python/peps#946 |
Sorry, something went wrong.
|
Closing this, as the linked issue has been closed. |
Sorry, something went wrong.
This contains documentation updates, runpy.py implementation, two unit tests and a fix for Lib/pdb.py to accomodate new aliasing of __main__ as the module's canonical name.
A run of "make test" on my El Capitan Mac here now shows the following failures:
Of these:
test_c_locale_coercion appears to be due to differences between my OS release and presumably more modern Darwin releases: various "utf-8" vs "ascii" mismatches in the output.
text_xmlrpc seems to run forever, here
the other tests fail for network based reasons.
WRT to a run against the master branch, the failure set is the same.
I cannot reproduce the hashlib based failures seen by Travis on my earlier PR. It will be interesting to see what Travis says now.
https://bugs.python.org/issue36375