bpo-22640: Add silent mode to py_compile#12976
Conversation
berkerpeksag
left a comment
There was a problem hiding this comment.
Please wait for @brettcannon's feedback before addressing my review comments. I opened bpo-22640 years ago and unfortunately I forgot to add Brett to nosy list.
|
|
||
| def test_quiet(self): | ||
| bad_coding = os.path.join(os.path.dirname(__file__), 'bad_coding2.py') | ||
| with support.captured_stderr(): |
There was a problem hiding this comment.
| with support.captured_stderr(): | |
| with support.captured_stderr() as stderr: |
Then we can add something like
self.assertEqual(stderr.getvalue(), '')to test the quiet option.
There was a problem hiding this comment.
Why did you mark this resolved? It still needs to be addressed.
There was a problem hiding this comment.
Sorry, I had confused it with @vadmium 's comment .
| @@ -0,0 +1 @@ | |||
| `py_compile` now supports silent mode. No newline at end of file | |||
There was a problem hiding this comment.
:func:`py_compile.compile`
There was a problem hiding this comment.
And please add "Patch by Your Name.".
There was a problem hiding this comment.
This comment is still needs to be addressed as well.
|
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 |
ZackerySpytz
left a comment
There was a problem hiding this comment.
Do not use "quite" instead of "quiet", please.
Noted. |
|
I'm fine with the idea. |
|
Great, I will finish addressing the reviews on this PR as soon as I can. |
44d5270 to
754afeb
Compare
|
I have made the requested changes; please review again. |
|
Thanks for making the requested changes! @berkerpeksag: please review the changes made to this pull request. |
berkerpeksag
left a comment
There was a problem hiding this comment.
This looks good to me, thank you! I just left mostly trivial comments.
You may also want to check documentation changes with a native English speaker. I'm not a native speaker, so they may help us to simply documentation changes :)
|
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 |
|
@nanjekyejoannah It seems that you marked my comment as "resolved", but the "What's New" entry still falsely states that |
|
@berkerpeksag PTAL . |
|
I have made the requested changes; please review again . |
|
Thanks for making the requested changes! @berkerpeksag: please review the changes made to this pull request. |
|
Thanks! |
|
Well done @nanjekyejoannah! |
|
Follow-up in #17134 to fix the NameErrors in |
|
It seems like this change introduced a regression in main(): see https://bugs.python.org/issue40456 |
|
It seems that you missed my previous message Victor! 🙂 |
Oh, right. Well, the main() changes of this PR should be reverted in 3.8. #17134 is new feature which should not into 3.8. |
I have added silent mode to py_compile.
https://bugs.python.org/issue22640