mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Added preferences/startup options for division warning
and accepting unix-style newlines on input.
This commit is contained in:
parent
822218b400
commit
a5ffeb69ab
6 changed files with 28 additions and 13 deletions
Binary file not shown.
|
@ -26,6 +26,8 @@ type 'Popt' {
|
|||
byte sitePython = 0, noSitePython = 1;
|
||||
byte navService = 0, noNavService = 1;
|
||||
byte noDelayConsole = 0, delayConsole = 1;
|
||||
byte noDivisionWarning = 0, divisionWarning = 1;
|
||||
byte noUnixNewlines = 0, unixNewlines = 1;
|
||||
};
|
||||
|
||||
type 'TMPL' {
|
||||
|
@ -55,6 +57,8 @@ resource 'TMPL' (PYTHONOPTIONS_ID, "Popt") {
|
|||
"No site-python support", 'DBYT',
|
||||
"No NavServices in macfs", 'DBYT',
|
||||
"Delay console window", 'DBYT',
|
||||
"Warnings for old-style division", 'DBYT',
|
||||
"Allow unix newlines on textfile input",'DBYT',
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -75,6 +79,8 @@ resource 'Popt' (PYTHONOPTIONS_ID, "Options") {
|
|||
sitePython,
|
||||
navService,
|
||||
noDelayConsole,
|
||||
noDivisionWarning,
|
||||
unixNewlines,
|
||||
};
|
||||
|
||||
/* The sys.path initializer */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue