<br><br><div><span class="gmail_quote">2005/12/20, Mike Meyer <<a href="mailto:mwm@mired.org">mwm@mired.org</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Benjamin Rutt <<a href="mailto:rutt@bmi.osu.edu">rutt@bmi.osu.edu</a>> writes:<br>> I suppose this question could be reformatted as "does CPython read the<br>> entire script file into memory and then close the file before
<br>> executing the script, making it safe for me to modify the script after<br>> I know it has started?"[1]<br><br>Yes, but (didn't you expect that?) it loads imported files when it<br>first executes an import statement for them. Future import statements
<br>will just get a reference to the loaded module, and won't reload<br>it.</blockquote><div><br>I have a silly question: Can  *VERY*  large script cause memory overflow if python load all the entire script file into memory?  
</div><br></div><br>