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
Types module doesn't have a type for _abc_data #80945
Comments
Types module doesn't have a type for _abc_data |
It's implementation detail of abc. I don't want expose it in public. Why you need it in types module? |
I'm working on a project that is a custom byte code interpreter for some Isn't types module exposing some types that are implementation detail such On Wed, May 1, 2019, 12:17 PM Inada Naoki <report@bugs.python.org> wrote:
|
I still don't understand why you need _abc_data.
cell object is implementation detail of CPython core. On the other hand, _abc_data is implementation detail of extension module, not interpreter. For example, _json.Encoder is not exposed in types module. |
|
It doesn't make sense to me. Could you elaborate?
abc is core part. But note that _py_abc can be used instead of _abc.
I think it is bad idea and we don't support such usage officially at all. |
It is based on default behavior of cpython. It tries to import _abc first instead of _py_abc and this type targets c implementation. |
We can try to obtain the type of ABCData and if we can't (if py_abc is On Wed, May 1, 2019, 2:56 PM Batuhan <report@bugs.python.org> wrote:
|
You didn't explain why people not only you need it. Unless clear use cases, I'm strong -1 on adding it in typing module. |
I concur with Inada. This is a deep implementation detail. Instances of this type are not even exposed to users. And the types module should not contain all types used in CPython. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: