New submission from Mitchell Model <m...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue5276> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com