[Python-Dev] Thoughts on stdlib evolvement
Eric Nieuwland
eric.nieuwland at xs4all.nl
Mon Jun 6 22:35:07 CEST 2005
Skip Montanaro wrote:
> The main technical challenge seems to be
> backward compatibility. You need to support both flat ("import
> urllib") and
> packaged namespaces ("from www import urllib"), possibly within the
> same
> application. That is, postulating a www package, if I execute
>
> import urllib
> from www.urllib import urlopen
>
> the module-level code should only be executed once, and
>
> urlopen == urllib.urlopen
>
> should evaluate to True.
Unless
from __future__ import new_std_library
and we don't allow mixed use within the same module.
--eric
More information about the Python-Dev
mailing list