[Python-Dev] a new type for sys.implementation (original) (raw)
Eric Snow ericsnowcurrently at gmail.com
Thu May 31 17:23:37 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 Thu, May 31, 2012 at 9:06 AM, Barry Warsaw <barry at python.org> wrote:
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.
Will do.
-eric
- 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 ]