[Python-Dev] Allowing import star with namespaces (original) (raw)
Brendan Moloney moloney at ohsu.edu
Tue Apr 26 19:17:18 CEST 2011
- Previous message: [Python-Dev] [Python-checkins] cpython (3.2): Issue #11919: try to fix test_imp failure on some buildbots.
- Next message: [Python-Dev] Allowing import star with namespaces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
We all know that doing:
from pkg import *
is bad because it obliterates the 'pkg' namespace. So why not allow something like:
import pkg.*
This would still be helpful for interactive sessions while keeping namespaces around.
Sorry if this has been brought up before, my searching didn't find anything relevant in the archives.
Thanks, Brendan
- Previous message: [Python-Dev] [Python-checkins] cpython (3.2): Issue #11919: try to fix test_imp failure on some buildbots.
- Next message: [Python-Dev] Allowing import star with namespaces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]