fileno() not supported in Python 3.1

Ben Finney ben+python at benfinney.id.au
Fri Nov 14 03:52:11 CET 2014


satishmlmlml at gmail.com writes:

> How to get file descriptor number for the following:
> sys.stdin
> sys.stdout
> sys.stderr

Why do you need this? What are you intending to do?

-- 
 \       “Crime is contagious… if the government becomes a lawbreaker, |
  `\          it breeds contempt for the law.” —Justice Louis Brandeis |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list