[Python-checkins] r52973 - in python/branches/release25-maint: Lib/os.py Misc/NEWS

Neal Norwitz nnorwitz at gmail.com
Mon Dec 11 01:47:57 CET 2006


Note: moving errno to be imported at module scope means that there is
another import at startup that didn't exist prior to this change.
errno is builtin in Unix and presumably on Windows, so it's not that
bad.  But it is a little more work each time if errno would not be
imported otherwise.

n

On 12/9/06, georg.brandl <python-checkins at python.org> wrote:
>
> Modified: python/branches/release25-maint/Lib/os.py
> ==============================================================================
> --- python/branches/release25-maint/Lib/os.py   (original)
> +++ python/branches/release25-maint/Lib/os.py   Sat Dec  9 10:10:18 2006
> @@ -25,6 +25,8 @@
>
>  import sys
>
> +from errno import ENOENT, ENOTDIR, EEXIST
> +
>  _names = sys.builtin_module_names
>
>  # Note:  more names are added to __all__ later.
> @@ -359,8 +366,6 @@
>  __all__.extend(["execl","execle","execlp","execlpe","execvp","execvpe"])
>
>  def _execvpe(file, args, env=None):
> -    from errno import ENOENT, ENOTDIR
> -


More information about the Python-checkins mailing list