[Python-Dev] towards a faster Python (original) (raw)
Samuele Pedroni pedronis@bluewin.ch
Tue, 10 Jun 2003 16:04:43 +0200
- Previous message: [Python-Dev] towards a faster Python
- Next message: [Python-Dev] towards a faster Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] towards a faster Python
- Next message: [Python-Dev] towards a faster Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]