[Python-Dev] towards a faster Python
Samuele Pedroni
pedronis@bluewin.ch
Tue, 10 Jun 2003 16:04:43 +0200
At 10:26 10.06.2003 +0200, M.-A. Lemburg wrote:
> (modules are often used as container for global variables and
> state).
and that kind of usage is penalized maybe too much by the patch as it
stands: e.g
[probably an application scripting scenario]
import new
import sys
userdata = new.module('userdata')
execfile('startupdata',userdata.__dict__)
sys.modules['userdata'] = userdata
user scripts:
import userdata
userdata.x=...
regards