[Python-Dev] PEP 273 - Import from Zip Archives (original) (raw)
David Abrahams David Abrahams" <david.abrahams@rcn.com
Thu, 28 Feb 2002 11:45:59 -0500
- Previous message: [Python-Dev] Version updates etc.
- Next message: [Python-Dev] Re: Of slots and metaclasses...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
----- Original Message ----- From: "Gordon McMillan" <gmcm@hypernet.com>
That's not even part of import. import is done when it has [name1, name2, name3]. It's ceval.c that does the binding.
Yep, so I discovered.
Sounds to me like you want to override setitem on the module's dict.
Not neccessarily, though that might be one approach. I might want to treat explicit setting of attributes differently from an import.
Tricky, 'cause a module is hardly in charge of its own dict.
But if you see value in it, you'd better persue it now, because Jeremy's plans for optimization of module dict will likely make things harder.
I thought this /was/ pursuing it. What did you have in mind?
-Dave
- Previous message: [Python-Dev] Version updates etc.
- Next message: [Python-Dev] Re: Of slots and metaclasses...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]