modify a long-running python script while it is running?
Kevin Yuan
farproc at gmail.com
Mon Dec 19 20:24:40 EST 2005
2005/12/20, Mike Meyer <mwm at mired.org>:
>
> Benjamin Rutt <rutt at bmi.osu.edu> writes:
> > I suppose this question could be reformatted as "does CPython read the
> > entire script file into memory and then close the file before
> > executing the script, making it safe for me to modify the script after
> > I know it has started?"[1]
>
> Yes, but (didn't you expect that?) it loads imported files when it
> first executes an import statement for them. Future import statements
> will just get a reference to the loaded module, and won't reload
> it.
I have a silly question: Can *VERY* large script cause memory overflow if
python load all the entire script file into memory?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051220/8bf9236e/attachment.html>
More information about the Python-list
mailing list