[Python-Dev] Improve Python for embedding
mwh at python.net
Mon Dec 22 17:39:53 EST 2003
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?
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
More information about the Python-Dev