(original) (raw)
Hello,
I was looking at the possibility of replacing the SEEK\_\* constants by IntEnums, and the first thing that catches attention is that these constants are defined in both Lib/os.py and Lib/io.py; both places also recently started supporting SEEK\_HOLE and SEEK\_DATA (though here io refers to os.SEEK\_HOLE and os.SEEK\_DATA).
* mmap: directs to use os.SEEK_*I was looking at the possibility of replacing the SEEK\_\* constants by IntEnums, and the first thing that catches attention is that these constants are defined in both Lib/os.py and Lib/io.py; both places also recently started supporting SEEK\_HOLE and SEEK\_DATA (though here io refers to os.SEEK\_HOLE and os.SEEK\_DATA).
Additional data points: other modules take these constants as arguments -