2005/12/20, Mike Meyer <[EMAIL PROTECTED]>:
Benjamin Rutt <[EMAIL PROTECTED]> 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?  


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to