-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Docs: split builtins to their own page from library #156682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| .. _builtin-index: | ||
|
|
||
| ####################### | ||
| Built-ins reference | ||
| ####################### | ||
|
|
||
| Python comes with a number of built-in functions and classes. | ||
|
|
||
| The built-in classes include data types that would normally be considered part | ||
| of the "core" of a language, such as numbers and lists. For these types, the | ||
| Python language core defines the form of literals and places some constraints | ||
| on their semantics, but does not fully define the semantics. | ||
|
|
||
| The built-ins also include functions and exceptions --- objects that can | ||
| be used by all Python code without the need of an :keyword:`import` statement. | ||
| Some of these are defined by the core language, but many are not essential for | ||
| the core semantics and are only described here. | ||
|
|
||
| .. We don't use :numbered: option for the TOC below as it enforces | ||
| numbered sections for the entire builtin docs. If desired, | ||
| :numbered: can be enabled on a per-page basis. | ||
| .. toctree:: | ||
| :maxdepth: 2 | ||
|
|
||
| stdtypes.rst | ||
| constants.rst | ||
| functions.rst | ||
| exceptions.rst | ||
| threadsafety.rst | ||
| time-complexity.rst |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,10 +4,11 @@ | |
| The Python Language Reference | ||
| ################################# | ||
|
|
||
| This reference manual describes the syntax and "core semantics" of the | ||
| This reference manual describes the syntax and core semantics of the | ||
| language. It is terse, but attempts to be exact and complete. The semantics of | ||
| non-essential built-in object types and of the built-in functions and modules | ||
| are described in :ref:`library-index`. For an informal introduction to the | ||
| built-in object types and of the built-in functions and modules | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we should drop "non-essential" what about everything documented in the datamodel?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't see what the word "non-essential" was adding here. Which built-in object types are non-essential?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Types like |
||
| are described in :ref:`builtin-index` and :ref:`library-index`. | ||
| For an informal introduction to the | ||
| language, see :ref:`tutorial-index`. For C or C++ programmers, two additional | ||
| manuals exist: :ref:`extending-index` describes the high-level picture of how to | ||
| write a Python extension module, and the :ref:`c-api-index` describes the | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.