FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-142349: Update lazy imports C API and sys.flags documentation by brittanyrey · Pull Request #158966 · python/cpython · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
3 changes: 1 addition & 2 deletions Doc/c-api/import.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,7 @@ Importing Modules

.. c:function:: int PyImport_SetLazyImportsMode(PyImport_LazyImportsMode mode)

Similar to :c:func:`PyImport_ImportModuleAttr`, but names are UTF-8 encoded
strings instead of Python :class:`str` objects.
Sets the current lazy imports mode.

This function always returns ``0``.

Expand Down
8 changes: 8 additions & 0 deletions Doc/library/sys.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,11 @@ always available. Unless explicitly noted otherwise, all variables are read-only
- :option:`-X context_aware_warnings <-X>` and
:envvar:`PYTHON_CONTEXT_AWARE_WARNINGS`

* - .. attribute:: flags.lazy_imports
- :option:`-X lazy_imports <-X>` and :envvar:`PYTHON_LAZY_IMPORTS`
(``1`` for ``all``, ``-1`` otherwise; not changed by
:func:`set_lazy_imports`)


.. versionchanged:: 3.2
Added ``quiet`` attribute for the new :option:`-q` flag.
Expand Down Expand Up @@ -691,6 +696,9 @@ always available. Unless explicitly noted otherwise, all variables are read-only
.. versionchanged:: 3.14
Added the ``context_aware_warnings`` attribute.

.. versionchanged:: 3.15
Added the ``lazy_imports`` attribute.


.. data:: float_info

Expand Down
Loading

Back | FazBrowse Home | New Git URL