A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-May/119780.html below:

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

[Python-Dev] a new type for sys.implementation [Python-Dev] a new type for sys.implementationBenjamin Peterson benjamin at python.org
Thu May 31 18:56:28 CEST 2012
2012/5/31 Nick Coghlan <ncoghlan at gmail.com>:
> On Thu, May 31, 2012 at 8:26 PM, Mark Shannon <mark at 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4