]> granicus.if.org Git - python/commitdiff
Document Py_GETENV() (#3890)
authorBarry Warsaw <barry@python.org>
Fri, 6 Oct 2017 13:53:48 +0000 (09:53 -0400)
committerGitHub <noreply@github.com>
Fri, 6 Oct 2017 13:53:48 +0000 (09:53 -0400)
Doc/c-api/intro.rst

index 4942b1a46980c5a2ec99260eece4ecba333cefa0..e654c4c012651ebefe52b3c0c568061de4a15eca 100644 (file)
@@ -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: