[Python-Dev] io module types

Matt Joiner anacrolix at gmail.com
Wed Jan 25 06:32:43 CET 2012


Can calls to the C types in the io module be made into module lookups
more akin to how it would work were it written in Python? The C
implementation for io_open invokes the C type objects for FileIO, and
friends, instead of looking them up on the io or _io modules. This
makes it difficult to subclass and/or modify the behaviour of those
classes from Python.

http://hg.python.org/cpython/file/0bec943f6778/Modules/_io/_iomodule.c#l413


More information about the Python-Dev mailing list