[Python-checkins] r63042 - in python/trunk: Lib/copy.py Lib/copy_reg.py Lib/copyreg.py Lib/idlelib/rpc.py Lib/os.py Lib/pickle.py Lib/re.py Lib/test/pickletester.py Lib/test/regrtest.py Lib/test/test___all__.py Lib/test/test_copy.py Lib/test/test

Brett Cannon brett at python.org
Sun May 11 21:47:59 CEST 2008


On Sun, May 11, 2008 at 9:43 PM, Alexandre Vassalotti
<alexandre at peadrop.com> wrote:
> On Sun, May 11, 2008 at 3:15 PM, M.-A. Lemburg <mal at egenix.com> wrote:
>> Ah, right: __dict__ is only available *after* the module has been
>> loaded.
>>
>> This works:
>>
>> import copyreg
>> locals().update(copyreg.__dict__)
>>
>
> Looks good to me. Brett, what do you think? Should we use that instead?

No because it doesn't solve the module identity problem. The proposed
solution deals with that and continues to work with ``from ...
import`` statements.

-Brett


More information about the Python-checkins mailing list