| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Thanks for the PR! As mentioned in my comment on the issue, the str() coercion can go at the re.sub call site rather than at the top of _expand_help. Also, please scope the change down. The _format_action changes and the broader test expansion aren't necessary for this fix.
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.
|
Addressed review feedback:
Testing:
I have made the requested changes; please review again |
Sorry, something went wrong.
|
Thanks for making the requested changes! @savannahostrowski: please review the changes made to this pull request. |
Sorry, something went wrong.
|
Inspected the Win32 failure. test_argparse passed there; the red job is unrelated: test_profiling.test_sampling_profiler.test_generator_not_under_consumer_arithmetic in Windows / Build and test (Win32, switch-case). This matches gh-150429, with follow-up fix in #150433. I pushed an empty commit to retrigger CI on the current PR head. |
Sorry, something went wrong.
There was a problem hiding this comment.
Unfortunately, this will still break with a proxy help string without a format specifier. The interpolation branch and the no-% branch in _expand_help reach re.sub by different routes, and only one of them is handled here. Let's add a test for this so we can catch it too.
Additionally, the summary and NEWS also overstate the scope of the change. This isn't fixing descriptions and epilogs and we don't need to since they weren't part of this regression (#142960 only changed the argument-help path). Please scope the wording down to what's actually fixed.
Please don't push empty commits to retrigger CI. It just creates additional noise. A comment stating that you don't think the failure is related is just fine.
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.
|
Addressed latest review feedback:
Testing:
I have made the requested changes; please review again |
Sorry, something went wrong.
|
Thanks for making the requested changes! @savannahostrowski: please review the changes made to this pull request. |
Sorry, something went wrong.
|
Alright, something about this issue had been nagging at me this afternoon, so I went back through the commit history again. I didn't realize this before but there's some asymmetry here between proxies with and without format specifiers. While proxies with a format specifier didn't raise before #142960, proxies without did, even with color off. As such, I think we should keep this PR minimally scoped to just resolving the immediate regression with proxies with format specifiers, and leave the discussion re. consistency for another issue/PR. With that in mind, your commit dc8b7d7 was actually correct. The whole fix should just be the single str() coercion on the re.sub subject in _expand_help. However, for next steps, I'd like to slow down a bit here. Instead of another revision, it would be helpful to hear your thoughts on the fix first. I would like to make sure that the changes landed are ones that work but are also ones you understand. We have a policy for this sort of thing in our devguide; please give our AI policy a read. |
Sorry, something went wrong.
|
@savannahostrowski - I understand this PR should stay narrowly scoped to the regression from #142960. In _expand_help(), the issue is that re.sub() now receives a proxy help object on the interpolation path, so coercing that re.sub subject with str() fixes the regression without changing unrelated behavior. I also understand that proxy help without a format specifier is separate pre-existing behavior, so this PR should not try to address that here. I’ve read the AI policy and wanted to confirm that understanding before making any further changes. |
Sorry, something went wrong.
|
@savannahostrowski - anything you want me to address before we take it further? Please let me know. |
Sorry, something went wrong.
|
Thanks for working on this but after several rounds of review, I’m going to close this and handle the regression directly. The required fix is very small, and the current branch still includes behavior outside the regression’s scope. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Issue
Testing