Overview

Request 120613 accepted

requesting release

Request History
Ludwig Nussel's avatar

lnussel created request

requesting release


Marcus Rueckert's avatar

darix declined request

+ while ((c = _PyOS_GetOpt(argc, argv, PROGRAM_OPTS)) != EOF) {
+ if (c == 'm' || c == 'c') {
+ /* -c / -m is the last option: following arguments are
+ not interpreter options. */
+ break;
+ }
+ switch (c) {
+ case 'E':
+ Py_IgnoreEnvironmentFlag++;
+ break;
+ case 'R':
+ Py_HashRandomizationFlag++;
+ break;
+ }
+ }
+ /* The variable is only tested for existence here; _PyRandom_Init will
+ check its value further. */
+ if (!Py_HashRandomizationFlag &&
+ (p = Py_GETENV("PYTHONHASHSEED")) && *p != '\0')
+ Py_HashRandomizationFlag = 1;

The end of this chunk seems wrong. imho it would make more sense to have

if (!IgnoreEnvironmentFlag && (p = Py_GETENV("PYTHONHASHSEED")) && *p != '\0')
Py_HashRandomizationFlag = 1;


Ludwig Nussel's avatar

lnussel added a reviewer

https://bugzilla.novell.com/show_bug.cgi?id=751718#c39


Sascha Peilicke's avatar

saschpe approved review


Ludwig Nussel's avatar

lnussel accepted request

ok


Sascha Peilicke's avatar

saschpe accepted review

openSUSE Build Service is sponsored by