From: Barry Warsaw Date: Fri, 6 Oct 2017 13:53:48 +0000 (-0400) Subject: Document Py_GETENV() (#3890) X-Git-Tag: v3.7.0a2~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a51b90a31399a8826e590da8e327bd65dd29e5a4;p=python Document Py_GETENV() (#3890) --- diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst index 4942b1a469..e654c4c012 100644 --- a/Doc/c-api/intro.rst +++ b/Doc/c-api/intro.rst @@ -132,6 +132,11 @@ complete listing. Argument must be a character or an integer in the range [-128, 127] or [0, 255]. This macro returns ``c`` cast to an ``unsigned char``. +.. c:macro:: Py_GETENV(s) + + Like ``getenv(s)``, but returns *NULL* if :option:`-E` was passed on the + command line (i.e. if ``Py_IgnoreEnvironmentFlag`` is set). + .. _api-objects: