[Python-Dev] a new type for sys.implementation
Eric Snow
ericsnowcurrently at gmail.com
Thu May 31 17:23:37 CEST 2012
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
More information about the Python-Dev
mailing list