fileno() not supported in Python 3.1

Ben Finney ben+python at benfinney.id.au
Thu Nov 13 21:52:11 EST 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