On Tue, Apr 21, 2009 at 08:48:29PM -0500, Shawn Walker wrote:

> [email protected] wrote:
>> There's a catch to using cStringIO if you're not handling plain ASCII.
>> I saw the following paragraph in the cStringIO documentation:
>>
>>      Unlike the memory files implemented by the StringIO module,
>>      those provided by this module are not able to accept Unicode
>>      strings that cannot be encoded as plain ASCII strings
>>      (http://www.python.org/doc/2.4.4/lib/module-cStringIO.html)
>>
>> If licenses are only in ASCII, then cStringIO would be preferable.
>
> The pydoc page for cStringIO doesn't include such a warning, of course :(
>
> Thanks for the note.

We've been using cStringIO on arbitrary data in various parts of the code
for a while, now, without any problems.  Perhaps we're just getting lucky?

Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to