[Python-Dev] a new type for sys.implementation

Barry Warsaw barry at python.org
Thu May 31 17:06:02 CEST 2012


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


More information about the Python-Dev mailing list