Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:

> I'm a bit surprised by the adopted approach. 
> It seems you are merely translating the Python code into C. 
> I think the proper approach for the buffered IO classes would be 
> to use a fixed-size buffer which never gets reallocated.

You are certainly right, but the code io.py is already difficult to understand 
and 
maintain; the corresponding C code adds one level of complexity;
had I changed the buffering strategy at the same time, it would have been 
impossible 
to ensure a correct implementation.
Now that my C implementation of the Buffered classes seems correct (all tests 
pass, 
except a few about destructors) we could try alternative approaches.

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4565>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to