This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: startup file compiler flags
Type: Stage:
Components: Interpreter Core Versions:
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: est, jepler, loewis
Priority: normal Keywords: patch

Created on 2003-08-25 00:15 by est, last changed 2022-04-10 16:10 by admin. This issue is now closed.

File name Uploaded Description Edit
startup_compiler_flags.diff est, 2003-08-25 00:15
Messages (6)
msg44509 - (view) Author: Eric Tiedemann (est) Date: 2003-08-25 00:15
Allow the startup file to modify the compiler flags.
This allows you, for example, to have true division
automatically in interactive mode.
msg44510 - (view) Author: Jeff Epler (jepler) Date: 2003-09-01 14:15
Logged In: YES 

Works for me.  It's a simple change, even though some code
was moved out of line into a separate static function.
msg44511 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-10-18 10:46
Logged In: YES 

I think there should be some documentation changes to
document what precisely can be done in the startup code.
msg44512 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-11-10 06:47
Logged In: YES 

Eric, are you willing to contribute documentation changes?
msg44513 - (view) Author: Jeff Epler (jepler) Date: 2003-11-10 12:55
Logged In: YES 

I would expect the behavior of $PYTHONSTARTUP to be just
like typing the commands in at the interactive prompt,
except that the results of the individual expr_statements
are not printed.  That simply makes the old behavior
(__future__ directives ignored) a bug.  Instead of writing
documentation that is specific "this works, but this
doesn't", any remaining details of interpreter state that
differ between $PYTHONSTARTUP and entering commands at the
interactive prompt should be fixed.
msg44514 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-11-18 19:46
Logged In: YES 

Thanks for the patch; applied as

NEWS 1.893
main.c 1.80
Date User Action Args
2022-04-10 16:10:49adminsetgithub: 39121
2003-08-25 00:15:27estcreate