Skip to content

Commit 4827502

Browse files
authored
Add additional builtins, links to CPython documentation
1 parent 0b58f17 commit 4827502

File tree

1 file changed

+42
-4
lines changed

1 file changed

+42
-4
lines changed

docs/library/builtins.rst

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@
44
All builtin functions and exceptions are described here. They are also
55
available via ``builtins`` module.
66

7+
For more information about built-ins, see the following CPython documentation:
8+
9+
* `Builtin CPython Functions <https://docs.python.org/3/library/functions.html>`_
10+
* `Builtin CPython Exceptions <https://docs.python.org/3/library/exceptions.html>`_
11+
* `Builtin CPython Constants <https://docs.python.org/3/library/constants.html>`_
12+
13+
.. note:: Not all of these functions, types, exceptions, and constants are turned
14+
on in all CircuitPython ports, for space reasons.
15+
716
Functions and types
817
-------------------
918

10-
Not all of these functions and types are turned on in all CircuitPython ports, for space reasons.
11-
1219
.. function:: abs()
1320

1421
.. function:: all()
@@ -160,46 +167,77 @@ Not all of these functions and types are turned on in all CircuitPython ports, f
160167
Exceptions
161168
----------
162169

170+
.. exception:: ArithmeticError
171+
163172
.. exception:: AssertionError
164173

165174
.. exception:: AttributeError
166175

176+
.. exception:: BaseException
177+
178+
.. exception:: BrokenPipeError
179+
180+
.. exception:: ConnectionError
181+
182+
.. exception:: EOFError
183+
167184
.. exception:: Exception
168185

169186
.. exception:: ImportError
170187

188+
.. exception:: IndentationError
189+
171190
.. exception:: IndexError
172191

173192
.. exception:: KeyboardInterrupt
174193

175194
.. exception:: KeyError
176195

196+
.. exception:: LookupError
197+
177198
.. exception:: MemoryError
178199

200+
.. exception:: MpyError
201+
202+
Not a part of the CPython standard library
203+
179204
.. exception:: NameError
180205

181206
.. exception:: NotImplementedError
182207

183208
.. exception:: OSError
184209

210+
.. exception:: OverflowError
211+
185212
.. exception:: RuntimeError
186213

187214
.. exception:: ReloadException
188215

189216
`ReloadException` is used internally to deal with soft restarts.
217+
218+
Not a part of the CPython standard library
219+
220+
.. exception:: StopAsyncIteration
190221

191222
.. exception:: StopIteration
192223

193224
.. exception:: SyntaxError
194225

195226
.. exception:: SystemExit
196227

197-
|see_cpython| :py:class:`cpython:SystemExit`.
228+
.. exception:: TimeoutError
198229

199230
.. exception:: TypeError
200231

201-
|see_cpython| :py:class:`cpython:TypeError`.
232+
.. exception:: UnicodeError
202233

203234
.. exception:: ValueError
204235

205236
.. exception:: ZeroDivisionError
237+
238+
Constants
239+
---------
240+
241+
.. data:: Ellipsis
242+
243+
.. data:: NotImplemented

0 commit comments

Comments
 (0)