[New-bugs-announce] [issue5276] IDLE startup file .Idle.py not documented

Mitchell Model report at bugs.python.org
Mon Feb 16 00:41:57 CET 2009


New submission from Mitchell Model <mlm at acm.org>:

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.

----------
assignee: georg.brandl
components: Documentation, IDLE
messages: 82186
nosy: MLModel, georg.brandl
severity: normal
status: open
title: IDLE startup file .Idle.py not documented
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5276>
_______________________________________


More information about the New-bugs-announce mailing list