Message133828
Hello,
The error occured in the APSW shell, when using its .output command. Looking at the apsw source, it appears to perform a sys.stdin.flush() at that point. Trying this in the Python interpreto gives the same error:
$ python
Python 2.7.1 (r271:86882M, Nov 30 2010, 09:39:13)
[GCC 4.0.1 (Apple Inc. build 5494)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.stdin.flush
<built-in method flush of file object at 0x28020>
>>> sys.stdin.flush()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 9] Bad file descriptor
But in Python3 it no longer occurs. I'd like to report this to the developer of the APSW module as it appears most easy to avoid it there (also there are more frequent releases). I hope it is useful to report it here too.
Regards, E. Pasma
(sorry that the original post was empty) |
|
Date |
User |
Action |
Args |
2011-04-15 14:45:40 | pasma10@concepts.nl | set | recipients:
+ pasma10@concepts.nl, vstinner, nadeem.vawda |
2011-04-15 14:45:40 | pasma10@concepts.nl | set | messageid: <1302878740.35.0.947520121641.issue11851@psf.upfronthosting.co.za> |
2011-04-15 14:45:34 | pasma10@concepts.nl | link | issue11851 messages |
2011-04-15 14:45:34 | pasma10@concepts.nl | create | |
|