Guido van Rossum wrote:
> On 11/18/05, Walter Dörwald <[EMAIL PROTECTED]> wrote:
>
>> >>> import StringIO, cStringIO
>> >>> s = StringIO.StringIO()
>> >>> s.truncate(-42)
>>Traceback (most recent call last):
>> File "<stdin>", line 1, in ?
>> File "/usr/local/lib/python2.4/StringIO.py", line 203, in truncate
>> raise IOError(EINVAL, "Negative size not allowed")
>>IOError: [Errno 22] Negative size not allowed
>> >>> s = cStringIO.StringIO()
>> >>> s.truncate(-42)
>> >>>
>
>
> Well, what does a regular file say in this case?
IOError: [Errno 22] Invalid argument
Bye,
Walter Dörwald
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com