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/129425.html below:

[Python-Dev] C extension import time

[Python-Dev] C extension import time [Python-Dev] C extension import timeEric Snow ericsnowcurrently at gmail.com
Fri Oct 11 21:48:02 CEST 2013
On Fri, Oct 11, 2013 at 1:41 PM, Stefan Krah <stefan at bytereef.org> wrote:
> Antoine Pitrou <solipsis at pitrou.net> wrote:
>> Just create a _pydecimal module (like _pyio).
>
> That's very fast indeed. There's one minor problem: For backwards compatibility
> and pickling [1] I'd need to add
>
>     __module__ = 'decimal'
>
> to every class of the Python version. Are there any reasons not to do that?

Try just putting "__name__ = 'decimal'" at the top of the source file.

-eric
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