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/2013-October/129426.html below:

[Python-Dev] C extension import time

[Python-Dev] C extension import time [Python-Dev] C extension import timeVictor Stinner victor.stinner at gmail.com
Fri Oct 11 23:08:00 CEST 2013
2013/10/11 Antoine Pitrou <solipsis at pitrou.net>:
>> So the first step I tried is something horrible (typing from memory):
>>
>> try:
>>     import _decimal
>> except ImportError:
>>     <whole of decimal.py here !!!>
>> else:
>>     from _decimal import *
>>
>> That way the 2.21 msec are reduced to 912 usec, but the indentation is
>> an abomination.
>
> Just create a _pydecimal module (like _pyio).

+1 but both modules must be tested (as io and _pyio).

Victor
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