[Python-Dev] a new type for sys.implementation (original) (raw)
Barry Warsaw barry at python.org
Thu May 31 17:06:02 CEST 2012
- Previous message: [Python-Dev] a new type for sys.implementation
- Next message: [Python-Dev] a new type for sys.implementation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On May 31, 2012, at 10:31 PM, Nick Coghlan wrote:
Personally, I suggest we just expose the new type as types.SimpleNamespace (implemented in Lib/types.py as "SimpleNamespace = type(sys.implementation)" and call it done.
Great idea, +1.
Eric, if you want to remove the special case for _names in the repr, and update your patch to include types.SimpleNamespace, I'd happily review it again and support its inclusion.
Cheers, -Barry
- Previous message: [Python-Dev] a new type for sys.implementation
- Next message: [Python-Dev] a new type for sys.implementation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]