-
-
Notifications
You must be signed in to change notification settings - Fork 32k
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
Conversation
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()
.
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 could merge #23101 into this PR. Would that be acceptable? |
+1, good idea You'll get bonus points for using |
GH-23101 merged with commit 38e3cd7. |
2aaa00a
to
0f10f7d
Compare
6e6ab04
to
bdd1338
Compare
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 |
Thanks for making the requested changes! @tiran: please review the changes made to this pull request. |
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.
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.
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
>>> 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
I find that odd as well.
It seems to happen only with methods with the UPDATE Seems like
|
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 |
Actually, tests should pass now because test runners will use revised idlelib. |
@tiran The IDLE test failure is gone. Do you still want changes? |
@corona10 IDLE has been fixed, so tests pass fine now. I'll file an issue about the missing |
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