FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.7] bpo-32984: IDLE - set __file__ for startup files (GH-5981) by miss-islington · Pull Request #5986 · python/cpython · GitHub

Repository navigation

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

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-22c82be-3.7
Mar 5, 2018
Merged

miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-22c82be-3.7

Conversation

miss-islington commented Mar 5, 2018 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

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

miss-islington merged commit fd340bf into python:3.7 Mar 5, 2018

Copy link
Copy Markdown
Contributor Author

Thanks!

miss-islington deleted the backport-22c82be-3.7 branch March 5, 2018 16:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL