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

Christian Heimes lists at cheimes.de
Thu Dec 27 00:16:16 CET 2007


skip at pobox.com wrote:
> Assuming they aren't huge I don't see any real problem linking them into the
> interpreter's binary image.  A few other modules are handled that way (sys,
> marshal, etc).

Both modules look small to me. They are just about 18k of C code each
and they contain lots of comments, too.

_stringio.c and _bytesio.c:
http://peadrop.com/alex-py3k/?file/96d2f18e1b0a/Modules/

Christian


More information about the Python-3000 mailing list