[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light
/ cpython Public
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.6] bpo-32984: IDLE - set __file__ for startup files (GH-5981) #5993

Merged
merged 1 commit into from Mar 5, 2018

Conversation

Copy link
Contributor

miss-islington commented Mar 5, 2018

Like Python, IDLE optionally runs one startup file in the Shell window
before presenting the first interactive input prompt. For IDLE,
option -s runs a file named in environmental variable IDLESTARTUP or
PYTHONSTARTUP; -r file runs file. Python sets file to the startup
file name before running the file and unsets it before the first
prompt. IDLE now does the same when run normally, without the -n
option.
(cherry picked from commit 22c82be)

Co-authored-by: Terry Jan Reedy tjreedy@udel.edu

https://bugs.python.org/issue32984

Like Python, IDLE optionally runs one startup file in the Shell window
before presenting the first interactive input prompt.  For IDLE,
option -s runs a file named in environmental variable IDLESTARTUP or
PYTHONSTARTUP; -r file runs file.  Python sets __file__ to the startup
file name before running the file and unsets it before the first
prompt.  IDLE now does the same when run normally, without the -n
option.
(cherry picked from commit 22c82be)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Copy link
Contributor Author

miss-islington commented Mar 5, 2018

@terryjreedy: Backport status check is done, and it's a success .

miss-islington merged commit 6935a51 into python:3.6 Mar 5, 2018
Copy link
Contributor Author

miss-islington commented Mar 5, 2018

Thanks!

miss-islington deleted the backport-22c82be-3.6 branch Mar 5, 2018
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants