Bad file descriptor

satishmlmlml at gmail.com satishmlmlml at gmail.com
Thu Nov 13 18:40:39 EST 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