cStringIO module broken by design?
Chris Liechti
cliechti at gmx.net
Sun Feb 17 13:43:14 EST 2002
Carsten Gaebler <clpy at snakefarm.org> wrote in news:3C6FEBED.40704
@snakefarm.org:
> It seems like the cStringIO module doesn't provide a write() method
> for StringIO objects that were initialized with a string:
...
> Why is that? I find it quite annoying.
i wouldn't call that broken. StringIO just exposes read-only and
write-only files.
if there were read/write files they would also need to support seek
adn truncate etc. but yes it could be practical for some cases... (PEP
someone?)
chris
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list