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-139847: Add PyType_Lookup() function by vstinner · Pull Request #139848 · python/cpython Conversation
|
The CI fails with:
I added the |
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.
|
I reverted changes to schedule |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@encukou: So what do you think of exposing this PyType function? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think there's benefit to exposing this but we need to do it carefully. The operation is different from getattr in surprising ways. The docs & tests should mention details -- not invoking descriptors or metaclass getattr. It might also be good for the docs to add an example of where Python uses this operaton, and/or equivalent Python code. “Lookup” is a new term in the public C API; are we sure this is the right operation for the name? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Add Python pseudo-code in the doc.
Good idea. I added tests for that and completed the doc.
I added Python pseudo-code to the doc. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Petr Viktorin <[email protected]>
|
The issue was closed, so I close the PR as well: #139847 (comment). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.