[issue4565] Rewrite the IO stack in C
Raymond Hettinger
report at bugs.python.org
Thu Feb 19 23:32:21 CET 2009
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
[Benjamin Peterson]
> I think we should just drop the Python implementations. There's no point
> in trying to keep two implementations around.
I disagree. I've found great value in keeping a pure python version
around for things I've converted to C. The former serves as
documentation, as a tool for other implementations (like PyPy
IronPython, and Jython), and as a precise spec. The latter case
is especially valuable (otherwise, the spec becomes whatever
CPython happens to do).
Also, I've found that once the two are in-sync, keeping it that way
isn't hard. And, there effort for keeping them in-sync is a good
way to find bugs.
In the heapqmodule, we do a little magic in the test suite to
make sure the tests are run against both. It's not hard.
Raymond
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4565>
_______________________________________
More information about the Python-bugs-list
mailing list