[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 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. -- nosy: +serhiy.storchaka resolution: -> rejected stage: patch

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: You didn't explain why people not only you need it. "Could you elaborate?" Unless clear use cases, I'm strong -1 on adding it in typing module. -- ___ Python tracker

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Batuhan
Batuhan added the comment: We can try to obtain the type of ABCData and if we can't (if py_abc is used) we can set ABCData to NotImplemented. On Wed, May 1, 2019, 2:56 PM Batuhan wrote: > > Batuhan added the comment: > > It is based on default behavior of cpython. It tries to import _abc

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Batuhan
Batuhan added the comment: It is based on default behavior of cpython. It tries to import _abc first instead of _py_abc and this type targets c implementation. -- ___ Python tracker

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: > I'm using it both for comparisons which needed to build an abstract base > class and typing. Currently there are 2 ways, i need to create a dummy abc > and put type() calls everywhere or i need to set a constant to my module and > _abc_data is totally

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Batuhan
Batuhan added the comment: > I still don't understand why you need _abc_data. I'm using it both for comparisons which needed to build an abstract base class and typing. Currently there are 2 ways, i need to create a dummy abc and put type() calls everywhere or i need to set a constant to my

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: > I'm working on a project that is a custom byte code interpreter for some extended types. I needed ABCData there I still don't understand why you need _abc_data. > Isn't types module exposing some types that are implementation detail such as > cells? cell

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Batuhan
Batuhan added the comment: I'm working on a project that is a custom byte code interpreter for some extended types. I needed ABCData there and i thought types module already has that, but i was wrong so i added. Isn't types module exposing some types that are implementation detail such as

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: It's implementation detail of abc. I don't want expose it in public. (Note that we maintain pure Python version of abc module too.) Why you need it in types module? I don't think all types exposed via types module. Only useful types should be exposed.

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread SilentGhost
Change by SilentGhost : -- components: +Library (Lib) nosy: +yselivanov type: -> enhancement versions: +Python 3.8 ___ Python tracker ___

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12954 stage: -> patch review ___ Python tracker ___ ___

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Batuhan
New submission from Batuhan : Types module doesn't have a type for _abc_data -- messages: 341180 nosy: isidentical priority: normal severity: normal status: open title: Types module doesn't have a type for _abc_data ___ Python tracker