This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author MLModel
Recipients MLModel, georg.brandl
Date 2009-02-15.23:41:56
SpamBayes Score 5.837745e-07
Marked as misclassified No
Message-id <1234741317.8.0.0064983097243.issue5276@psf.upfronthosting.co.za>
In-reply-to
Content
The following behavior should be documented but it is not:

If the user has a .Idle.py file IDLE will run it when it starts up. This 
is independent of running IDLESTARTUP or PYTHONSTARTUP when the -s 
switch is given. It is run by Tk.readprofile as called from Tk.__init__. 
The "Idle" comes from the name passed to TK() when PyShell.py creates 
its Tk root. In fact, not only is it independent, but it works 
differently: any imports done in .Idle.py go into Tk's name space, 
whereas IDLESTARTUP/PYTHONSTARTUP is exec'd and imports go into the 
interpreter's namespace.

Note that the 'I' in '.Idle.py' is really uppercase, which will matter 
on case-sensitive platforms.
History
Date User Action Args
2009-02-15 23:41:57MLModelsetrecipients: + MLModel, georg.brandl
2009-02-15 23:41:57MLModelsetmessageid: <1234741317.8.0.0064983097243.issue5276@psf.upfronthosting.co.za>
2009-02-15 23:41:56MLModellinkissue5276 messages
2009-02-15 23:41:56MLModelcreate