demo_ref_file_fileno.py:
f = open("demofile.txt", "r") print(f.fileno())
C:\Users\My Name>python demo_file_fileno.py
3