[Python-Dev] Sharing functions between C extension modules in stdlib (original) (raw)

Alexander Belopolsky alexander.belopolsky at gmail.com
Wed Jun 16 17:54:06 CEST 2010


On Mon, Jun 14, 2010 at 7:09 PM, "Martin v. Löwis" <martin at v.loewis.de> wrote: ..

So it's clearly intentional. I doubt its desirable, though. If only _PyTimeDoubleToTimet needs to be duplicated, I'd rather put that function into a separate C file that gets included twice, instead of including the full timemodule.c into datetimemodule.c.

Thanks for your research, Martin. I've opened an issue for this at http://bugs.python.org/issue9012 .



More information about the Python-Dev mailing list