Guido van Rossum <guido at python.org> writes: >> > (not just in Py_Initialize()) by setting the global >> > Py_IgnoreEnvironmentFlag to a non-zero value. I'd reject that part of >> > the patch for that reason. >> >> I did not know about or notice this flag when I made the changes --- >> in all the places I looked at the time the environment variables were >> read without such a check, at least as I remember. It certainly makes >> more sense to use the built in support. > > Perhaps it's easy to overlook that it's using Py_GETENV() rather than > getenv(); this macro takes tests for Py_IgnoreEnvironmentFlag first. Py_IgnoreEnvironmentFlag and the -E command line option are both /fairly/ new... 2.2 era? Cheers, mwh -- Worryingly, DEFUN appears to be a function that removes all the fun from something: after using it all your code is converted to C++. -- Tim Bradshaw, comp.lang.lisp
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4