Document Py_GETENV() (#3890)

This commit is contained in:
Barry Warsaw 2017-10-06 09:53:48 -04:00 committed by GitHub
parent 731e189014
commit a51b90a313
1 changed files with 5 additions and 0 deletions

View 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: