[Python-Dev] SEEK_* constants in io and os (original) (raw)
Ethan Furman ethan at stoneleaf.us
Fri Sep 6 16:23:46 CEST 2013
- Previous message: [Python-Dev] SEEK_* constants in io and os
- Next message: [Python-Dev] Python 2.6 to end support with 2.6.9 in October 2013
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 09/01/2013 06:02 PM, Eli Bendersky wrote:
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.SEEKHOLE/DATA, at least in the documentation). Any ideas and suggestions are welcome,
Ideally we should only define them once.
If these are values that could change per O/S then they should be in the os module. Since they /can/ change per O/S (even if they don't currently), we should put them in os.
I'd say it's worth the extra 0.5ms startup time.
--
Ethan
- Previous message: [Python-Dev] SEEK_* constants in io and os
- Next message: [Python-Dev] Python 2.6 to end support with 2.6.9 in October 2013
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]