demo_ref_file_fileno.py:
f = open("demofile.txt", "r") print(f.fileno())
➜ begtut>python demo_file_fileno.py
3