Mercurial > hgrepos > Python > libs > ConfigMix
diff docs/introduction.rst @ 697:57fe110c50c8
Implement a new "SYS" namespace with "prefix", "base_prefix" and "platform"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 14 Jun 2023 01:11:01 +0200 |
| parents | 3062b63325c4 |
| children | 3a9d661d33b5 |
line wrap: on
line diff
--- a/docs/introduction.rst Mon Jun 12 09:28:36 2023 +0200 +++ b/docs/introduction.rst Wed Jun 14 01:11:01 2023 +0200 @@ -372,12 +372,30 @@ Contains the current node's computername (or whatever :py:func:`platform.node` returns) -4. The namespace ``ENV`` +4. The namespace ``SYS`` + + Available functions: + + ``prefix`` + Contains the content of the current running Python's + :py:data:`sys.prefix`. + + ``base_prefix`` + Contains the content of the current running Python's + :py:data:`sys.base_prefix`. + + Raises :py:class:`KeyError` if the attribute is not available. + + ``platform`` + Contains the content of the current running Python's + :py:data:`sys.platform`. + +5. The namespace ``ENV`` This namespace contains all the environment variables as they are available from :py:data:`os.environ`. -5. The namespace ``PY`` +6. The namespace ``PY`` Contains selected values from the running Python: @@ -394,7 +412,7 @@ ``implementation`` The return value of :py:func:`platform.python_implementation` -6. The namespace ``AWS`` +7. The namespace ``AWS`` Contains some metadata for AWS instances when running from within AWS:
