You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
types module can be implemented only in Python #46660
interpreter-core(Objects, Python, Grammar, and Parser dirs)stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement
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:
assignee=Noneclosed_at=<Date2008-04-08.22:09:42.495>created_at=<Date2008-03-18.21:09:29.487>labels= ['interpreter-core', 'type-feature', 'library']
title='types module can be implemented only in Python'updated_at=<Date2008-04-08.22:09:42.487>user='https://github.com/benjaminp'
types currently exposes all types used by the interpreter except cell
objects. This patch adds support for that and adds to the docs. I
couldn't find a way to access the cell type through Python, so I added
it to the _types module.
interpreter-core(Objects, Python, Grammar, and Parser dirs)stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement
Activity
benjaminp commentedon Mar 18, 2008
types currently exposes all types used by the interpreter except cell
objects. This patch adds support for that and adds to the docs. I
couldn't find a way to access the cell type through Python, so I added
it to the _types module.
amauryfa commentedon Mar 18, 2008
The following python code retrieves the cell type, and could be added to
types.py:
OTOH, you are unlikely to need it. Do you have a use case, or is it just
to have the full list of types?
amauryfa commentedon Mar 18, 2008
While I'm at it, the _types module could be removed, because its exports
can easily be replaced by:
benjaminp commentedon Mar 18, 2008
I've attached a patch which uses the Amaury's implementation.
benjaminp commentedon Mar 18, 2008
Okay, I removed the _types module in favor of your Python
implementation. Here's the patch.
[-]types should expose cell object[/-][+]types module can be implemented only in Python[/+]tiran commentedon Mar 21, 2008
Please have a look at patch bpo-1605, too. It implements a semi
autogenerated _types module which exposes all types in from Include/*.h
amauryfa commentedon Apr 8, 2008
Committed r62231: remove _types module.
I did not add CellType though, because of discussion in bpo-1605.