Incorrect error message

Kragen Sitaker kragen at
Sat Mar 11 18:11:42 CET 2000

In article <m%yx4.766$74.11996 at>,
Fredrik Lundh <effbot at> wrote:
>gerrit at wrote:
>> >>> open('/tmp/abcde', 'e')
>> Traceback (innermost last):
>>   File "<stdin>", line 1, in ?
>> IOError: [Errno 22] Invalid argument: '/tmp/abcde'
>in this case, the combination is a bit misleading, but
>there's no reasonable way to avoid this.

Is it less reasonable to produce a misleading error message or to
duplicate fopen's functionality using fdopen?

I suppose he who has time to complain has time to submit patches . . .
<kragen at>       Kragen Sitaker     <>
The Internet stock bubble didn't burst on 1999-11-08.  Hurrah!
The power didn't go out on 2000-01-01 either.  :)

More information about the Python-list mailing list