[Python-3000] How to override io.BytesIO and io.StringIO with their optimized C version?

Christian Heimes lists at cheimes.de
Wed Dec 26 23:40:21 CET 2007


Alexandre Vassalotti wrote:
> Well, I been working on branches since the beginning. Although, I now
> use Mercurial (which is lovely IMHO) to keep my changes (url:
> http://peadrop.com/alex-py3k/).

Someday I need to play with Hg. It looks interesting and I've heard only
good about it.

> How would that works? The modules in Module/config.c need to linked to
> the main binary, no?

Correct! Do you want to build shared library extensions?

Your problem is related to http://bugs.python.org/issue586680. It could
be fixed in two ways. Either we move initstdio() after initsite()
(Python/pythonrun.c) or we add the ./build/lib.<platform>-<version> to
sys.path before we initialize the standard streams.

Christian


More information about the Python-3000 mailing list