• Miss Islington (bot)'s avatar
    bpo-32984: IDLE - set __file__ for startup files (GH-5981) · 6935a511
    Miss Islington (bot) yazdı
    
    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 22c82be5)
    Co-authored-by: 's avatarTerry Jan Reedy <tjreedy@udel.edu>
    6935a511
pyshell.py 55.1 KB