[Python-Dev] import curdir,pardir,sep,pathsep,defpath from relevant *path module

Michael Hudson mwh@python.net
Fri, 14 Feb 2003 11:13:25 +0000


Skip Montanaro <skip@pobox.com> writes:

> Proposal: Move the definitions of curdir, pardir, sep, pathsep and defpath
> into the relevant path module (ntpath, posixpath, etc), then for
> compatibility reimport them ("from path import curdir, pardir, sep, pathsep,
> defpath") later in os.py.  Update the libref documentation to reflect these
> items' new home.  Do whatever is necessary deprecation-wise (silent in 2.3?
> Update usage in Python source after 2.3 release and add visible deprecation
> in 2.4?).

I know Guido's squashed the idea, but how would you issue a warning on
use of a module level global?

Cheers,
M.

-- 
  This makes it possible to pass complex object hierarchies to
  a C coder who thinks computer science has made no worthwhile
  advancements since the invention of the pointer.
                                       -- Gordon McMillan, 30 Jul 1998