On Fri, Oct 11, 2013 at 1:41 PM, Stefan Krah <ste...@bytereef.org> wrote: > Antoine Pitrou <solip...@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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com