GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — gh-115231: fill __module__ for built-in staticmethods by skirpichev · Pull Request #115232 · python/cpython Conversation
|
|
See also #82062: we could fix that issue in a similar approach, using >>> int.to_bytes.__module__ Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'method_descriptor' object has no attribute '__module__'. Did you mean: '__reduce__'? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
d29c90d to
386f383
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM. But I would look what can we do with unbound instance methods and class methods. Because providing __module__ only for static methods loses purpose.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Hmm, I don't see ways to speedup this. Maybe solution is just to pay this price at time of access the
Why? Something meaningful is better than just |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
CC @vstinner |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Victor Stinner <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I clicked on [Update branch] since this PR was created many months ago. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…15232) Co-authored-by: Nikita Sobolev <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
…15232) Co-authored-by: Nikita Sobolev <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.