2012/5/31 Nick Coghlan <ncogh...@gmail.com>:
> On Thu, May 31, 2012 at 8:26 PM, Mark Shannon <m...@hotpy.org> wrote:
>> Eric Snow wrote:
>>>
>>> The implementation for sys.implementation is going to use a new (but
>>> "private") type[1].  It's basically equivalent to the following:
>>
>>
>> Does this really need to be written in C rather than Python?
>
> Yes, because we want to use it in the sys module. As you get lower
> down in the interpreter stack, implementing things in Python actually
> starts getting painful because of bootstrapping issues (e.g. that's
> why both _structseq and collections.namedtuple exist).

sys.implementation could be added by site or some other startup file.



-- 
Regards,
Benjamin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to