fileno() not supported in Python 3.1
Chris Angelico
rosuav at gmail.com
Sun Nov 16 00:29:45 EST 2014
On Sun, Nov 16, 2014 at 4:25 PM, Dan Stromberg <drsalists at gmail.com> wrote:
> Works for me, although it's a little different in Jython:
> $ pythons --command 'import sys; print(sys.stdin.fileno())'
> /usr/local/jython-2.7b3/bin/jython good org.python.core.io.StreamIO at 170ed6ab
Huh, that is curious. According to its CPython docstring, it's
supposed to return an integer (no idea if that's standardized)... but
I guess if os.read() takes that StreamIO object, then it'll do as
well.
ChrisA
More information about the Python-list
mailing list