[Python-Dev] Trickery with moving urllib (original) (raw)
Brett Cannon brett at python.org
Sun May 11 21:37:37 CEST 2008
- Previous message: [Python-Dev] Trickery with moving urllib
- Next message: [Python-Dev] Trickery with moving urllib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, May 11, 2008 at 8:31 AM, Georg Brandl <g.brandl at gmx.net> wrote:
Brett Cannon schrieb:
There is going to be an issue with the current proposal for keeping around urllib. Since the package is to be named the same thing as the module, to handle the new name that means urllib.init will need to gain the Py3K warning for the new name. But that doesn't quite work as the package's module will be imported automatically any time the module within the package is used. In this context, what's become of PEP 364? Is it still alive? Does it cover this case?
PEP 364 was pre-2to3 (Barry and I came up with that solution at the same PyCon 2to3 was conceived). A 2to3 fixer that handles the renames does the same thing; so no, it doesn't solve the issue directly.
-Brett
- Previous message: [Python-Dev] Trickery with moving urllib
- Next message: [Python-Dev] Trickery with moving urllib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]