fileno() not supported in Python 3.1

Chris Angelico rosuav at
Sun Nov 16 06:29:45 CET 2014

On Sun, Nov 16, 2014 at 4:25 PM, Dan Stromberg <drsalists at> 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 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 takes that StreamIO object, then it'll do as


More information about the Python-list mailing list