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-102213: Optimizing the Performance of __getattr__ #102213 by wangxiang-hz · Pull Request #102248 · python/cpython Conversation
|
|
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
when __getattr__ is defined, python with try to find an attribute using _PyObject_GenericGetAttrWithDict find nothing is reasonable so we don't need an exception, it will hurt performance.
|
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Good work. Just a few things I think we should tidy up.
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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Thank you for your advice, it was very helpful. I also think that modifying the public C API could cause issues, but I was unsure whether to put the new function together with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Also, thanks for addressing my review! In the future once you address the comments, you can just click "resolve conversation". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks! Congrats on your first commit to CPython @wangxiang-hz ! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thank you! It's really my honor to participate in the development of CPython! Looking forward to make more pull requests in the future:) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…102248) When __getattr__ is defined, python with try to find an attribute using _PyObject_GenericGetAttrWithDict find nothing is reasonable so we don't need an exception, it will hurt performance.
…ythonGH-102248)" This reverts commit aa0a73d.
… `__getattr__` (pythonGH-102248)" (pythonGH-103332) This reverts commit aa0a73d.
This is the corrected version of pythonGH-102248
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.