[Python-checkins] Document Py_GETENV() (#3890)

Barry Warsaw webhook-mailer at python.org
Fri Oct 6 09:53:51 EDT 2017


https://github.com/python/cpython/commit/a51b90a31399a8826e590da8e327bd65dd29e5a4
commit: a51b90a31399a8826e590da8e327bd65dd29e5a4
branch: master
author: Barry Warsaw <barry at python.org>
committer: GitHub <noreply at github.com>
date: 2017-10-06T09:53:48-04:00
summary:

Document Py_GETENV() (#3890)

files:
M Doc/c-api/intro.rst

diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst
index 4942b1a4698..e654c4c0126 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:
 



More information about the Python-checkins mailing list