Author eric.snow
Recipients Arfrever, brett.cannon, eric.snow, ncoghlan
Date 2014-01-04.07:10:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1388819423.94.0.705451939744.issue19697@psf.upfronthosting.co.za>
In-reply-to
Content
For the record, normal start-up happens like this (simplified):

1. prep for and create/initialize interpreter
2. exec the site module in the __main__ namespace (unless -S)
3. do the interface-specific stuff

Note: exec of the site module does not impact the spec.

In the case where -i/PYTHONINSPECT is issued (or implied):

1. ...
2. ...
3. exec the PYTHONSTARTUP script (if set and it exists)
4. do the interface-specific stuff
5. start the REPL

Note: the -i case does not impact the spec, nor does the exec of any PYTHONSTARTUP script.


See:

[1] http://docs.python.org/3.4/using/cmdline.html
[2] Python/pythonrun.c
[3] Modules/main.c
[4] PEP 432
History
Date User Action Args
2014-01-04 07:10:23eric.snowsetrecipients: + eric.snow, brett.cannon, ncoghlan, Arfrever
2014-01-04 07:10:23eric.snowsetmessageid: <1388819423.94.0.705451939744.issue19697@psf.upfronthosting.co.za>
2014-01-04 07:10:23eric.snowlinkissue19697 messages
2014-01-04 07:10:23eric.snowcreate