This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pasma10@concepts.nl
Recipients nadeem.vawda, pasma10@concepts.nl, vstinner
Date 2011-04-15.14:45:34
SpamBayes Score 1.6486812e-14
Marked as misclassified No
Message-id <1302878740.35.0.947520121641.issue11851@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2011-04-15 14:45:40pasma10@concepts.nlsetrecipients: + pasma10@concepts.nl, vstinner, nadeem.vawda
2011-04-15 14:45:40pasma10@concepts.nlsetmessageid: <1302878740.35.0.947520121641.issue11851@psf.upfronthosting.co.za>
2011-04-15 14:45:34pasma10@concepts.nllinkissue11851 messages
2011-04-15 14:45:34pasma10@concepts.nlcreate