bpo-1635741: Convert _sre types to heap types and establish module state (PEP 384)#23393
bpo-1635741: Convert _sre types to heap types and establish module state (PEP 384)#23393corona10 merged 15 commits into
Conversation
Sorry, something went wrong.
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().
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 |
Sorry, something went wrong.
I could merge #23101 into this PR. Would that be acceptable? |
Sorry, something went wrong.
+1, good idea You'll get bonus points for using |
Sorry, something went wrong.
GH-23101 merged with commit 38e3cd7. |
Sorry, something went wrong.
2aaa00a to
0f10f7d
Compare
November 19, 2020 09:55
6e6ab04 to
bdd1338
Compare
November 19, 2020 10:18
from 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.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
|
Thanks for making the requested changes! @tiran: please review the changes made to this pull request. |
Sorry, something went wrong.
corona10
left a comment
There was a problem hiding this comment.
lgtm awesome,
I ran manually some tests and works well.
Sorry, something went wrong.
corona10
left a comment
There was a problem hiding this comment.
But I want to know why this behavior is changed.
master
>>> import re
>>> 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
>>> import re
>>> p = re.compile('')
>>> p.sub.__doc__
None
Sorry, something went wrong.
I find that odd as well. It seems to happen only with methods with the UPDATE Seems like |
Sorry, something went wrong.
This reverts commit a6bc481.
|
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 |
Sorry, something went wrong.
|
Actually, tests should pass now because test runners will use revised idlelib. |
Sorry, something went wrong.
|
@tiran The IDLE test failure is gone. Do you still want changes? |
Sorry, something went wrong.
|
@corona10 IDLE has been fixed, so tests pass fine now. I'll file an issue about the missing |
Sorry, something went wrong.
corona10
left a comment
There was a problem hiding this comment.
lgtm
Sorry, something went wrong.
https://bugs.python.org/issue1635741