Bad file descriptor

satishmlmlml at gmail.com satishmlmlml at gmail.com
Fri Nov 14 00:40:39 CET 2014


import os
os.write(1, b'Hello descriptor world\n')
OSError: Bad file descriptor

How to give a file descriptor number to this function? How to get a file descriptor number?



More information about the Python-list mailing list