Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
bpo-1635741: Convert _sre types to heap types and establish module state (PEP 384)#23393
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
erlend-aasland commented Nov 19, 2020 • edited by bedevere-bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-bot
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland commented Nov 19, 2020
tiran left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comments
While you are working on the module, please remove PyModule_GetDict() and replace the code with PyModule_AddStringConstant().
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot commented Nov 19, 2020
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 |
erlend-aasland commented Nov 19, 2020
I could merge #23101 into this PR. Would that be acceptable? |
tiran commented Nov 19, 2020
+1, good idea You'll get bonus points for using |
erlend-aasland commented Nov 19, 2020
GH-23101 merged with commit 38e3cd7. |
2aaa00a to 0f10f7dCompare6e6ab04 to bdd1338Comparefrom Lib/idlelib/idle_test/test_calltip.py: The tests of builtins may break if inspect or the docstrings change, but a red buildbot is better than a user crash (as has happened). For a simple mismatch, change the expected output to the actual.
erlend-aasland commented Nov 19, 2020
I have made the requested changes; please review again |
bedevere-bot commented Nov 19, 2020
Thanks for making the requested changes! @tiran: please review the changes made to this pull request. |
tiran left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corona10 left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm awesome,
I ran manually some tests and works well.
corona10 left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I want to know why this behavior is changed.
master
>>>importre>>>p=re.compile('') >>>p.sub.__doc__'Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.'PR
>>>importre>>>p=re.compile('') >>>p.sub.__doc__Noneerlend-aasland commented Nov 19, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
I find that odd as well. It seems to happen only with methods with the UPDATE Seems like |
This reverts commit a6bc481.
erlend-aasland commented Nov 19, 2020
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot commented Nov 19, 2020
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 |
terryjreedy commented Nov 20, 2020
Actually, tests should pass now because test runners will use revised idlelib. |
terryjreedy commented Nov 20, 2020
@tiran The IDLE test failure is gone. Do you still want changes? |
erlend-aasland commented Nov 20, 2020
@corona10 IDLE has been fixed, so tests pass fine now. I'll file an issue about the missing |
corona10 left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
https://bugs.python.org/issue1635741