Message 341185 - Python tracker

Message341185

Author methane
Recipients BTaskaya, methane, yselivanov
Date 2019-05-01.09:45:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556703904.63.0.680925942771.issue36764@roundup.psfhosted.org>
In-reply-to
Content
> 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 object is implementation detail of CPython core.
While other Python implementations will not have it, it is long lived in CPython and it is stable.

On the other hand, _abc_data is implementation detail of extension module, not interpreter.

For example, _json.Encoder is not exposed in types module.
If it is really needed, type of _abc_data can be exposed via _abc module.
But I prefer keep internal data opaque unless there are reasonable reason.
History
Date User Action Args
2019-05-01 09:45:04methanesetrecipients: + methane, yselivanov, BTaskaya
2019-05-01 09:45:04methanesetmessageid: <1556703904.63.0.680925942771.issue36764@roundup.psfhosted.org>
2019-05-01 09:45:04methanelinkissue36764 messages
2019-05-01 09:45:04methanecreate