Name space pollution

Tim Peters at
Thu Jan 23 03:13:18 CET 2003

[Andreas Gustafsson]
> ...
> Python also pollutes a number of other common symbols in a similar way,
> for example, "cmpfunc", "hashfunc", and "initproc".
> Is there any chance this will be fixed?

Sure.  It's exactly equal to the chance that someone who cares enough to do
the work contributes a patch to do it.  They have their work cut for them,
though, as such names are part of Python C API, and any number of extension
modules rely on the current names.  So, e.g., a layer of optional
backward-compatibility macros would also be needed.  Throw a PEP into the
mix too, and the chance keeps diving toward zero <wink>.

More information about the Python-list mailing list