[Python-Dev] SEEK_* constants in io and os
solipsis at pitrou.net
Mon Sep 2 10:24:37 CEST 2013
Le Sun, 1 Sep 2013 18:02:30 -0700,
Eli Bendersky <eliben at gmail.com> a écrit :
> 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).
What is the runtime cost of doing so? os is a fundamental module that is
imported by almost every Python program.
More information about the Python-Dev