<div dir="ltr"><div><div><div><div><div>Hello,<br><br>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). <br>

<br>Additional data points: other modules take these constants as arguments - <br></div>* mmap: directs to use os.SEEK_*<br></div>* chunk and fcntk: spell out the numeric values.<br><br></div>os seems to import io in some functions; can this be done always? If yes, we can just define the constants once and os.SEEK_* will alias io.SEEK_*? The other way (io taking from os) is also a possibility (maybe the preferred one because io already refers to os.SEEK_HOLE/DATA, at least in the documentation).<br>

<br></div>Any ideas and suggestions are welcome,<br><br></div>Eli<br></div>