Uh oh!
There was an error while loading. Please reload this page.
bpo-1635741: Convert _sre types to heap types and establish module state (PEP 384) - #23393
Conversation
erlend-aasland
commented
Nov 19, 2020
tiran
left a comment
There was a problem hiding this comment.
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. |
corona10
left a comment
There was a problem hiding this comment.
lgtm awesome,
I ran manually some tests and works well.
corona10
left a comment
There was a problem hiding this comment.
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__None
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 |
https://bugs.python.org/issue1635741