[Python-Dev] SEEK_* constants in io and os (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Mon Sep 2 10:24:37 CEST 2013
- Previous message: [Python-Dev] SEEK_* constants in io and os
- Next message: [Python-Dev] SEEK_* constants in io and os
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Le Sun, 1 Sep 2013 18:02:30 -0700, Eli Bendersky <eliben at gmail.com> a écrit :
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 SEEKHOLE and SEEKDATA (though here io refers to os.SEEKHOLE and os.SEEKDATA).
What is the runtime cost of doing so? os is a fundamental module that is imported by almost every Python program.
Regards
Antoine.
- Previous message: [Python-Dev] SEEK_* constants in io and os
- Next message: [Python-Dev] SEEK_* constants in io and os
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]