|
4 | 4 | All builtin functions and exceptions are described here. They are also
|
5 | 5 | available via ``builtins`` module.
|
6 | 6 |
|
| 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 | + |
7 | 16 | Functions and types
|
8 | 17 | -------------------
|
9 | 18 |
|
10 |
| -Not all of these functions and types are turned on in all CircuitPython ports, for space reasons. |
11 |
| - |
12 | 19 | .. function:: abs()
|
13 | 20 |
|
14 | 21 | .. function:: all()
|
@@ -160,46 +167,77 @@ Not all of these functions and types are turned on in all CircuitPython ports, f
|
160 | 167 | Exceptions
|
161 | 168 | ----------
|
162 | 169 |
|
| 170 | +.. exception:: ArithmeticError |
| 171 | + |
163 | 172 | .. exception:: AssertionError
|
164 | 173 |
|
165 | 174 | .. exception:: AttributeError
|
166 | 175 |
|
| 176 | +.. exception:: BaseException |
| 177 | + |
| 178 | +.. exception:: BrokenPipeError |
| 179 | + |
| 180 | +.. exception:: ConnectionError |
| 181 | + |
| 182 | +.. exception:: EOFError |
| 183 | + |
167 | 184 | .. exception:: Exception
|
168 | 185 |
|
169 | 186 | .. exception:: ImportError
|
170 | 187 |
|
| 188 | +.. exception:: IndentationError |
| 189 | + |
171 | 190 | .. exception:: IndexError
|
172 | 191 |
|
173 | 192 | .. exception:: KeyboardInterrupt
|
174 | 193 |
|
175 | 194 | .. exception:: KeyError
|
176 | 195 |
|
| 196 | +.. exception:: LookupError |
| 197 | + |
177 | 198 | .. exception:: MemoryError
|
178 | 199 |
|
| 200 | +.. exception:: MpyError |
| 201 | + |
| 202 | + Not a part of the CPython standard library |
| 203 | + |
179 | 204 | .. exception:: NameError
|
180 | 205 |
|
181 | 206 | .. exception:: NotImplementedError
|
182 | 207 |
|
183 | 208 | .. exception:: OSError
|
184 | 209 |
|
| 210 | +.. exception:: OverflowError |
| 211 | + |
185 | 212 | .. exception:: RuntimeError
|
186 | 213 |
|
187 | 214 | .. exception:: ReloadException
|
188 | 215 |
|
189 | 216 | `ReloadException` is used internally to deal with soft restarts.
|
| 217 | + |
| 218 | + Not a part of the CPython standard library |
| 219 | + |
| 220 | +.. exception:: StopAsyncIteration |
190 | 221 |
|
191 | 222 | .. exception:: StopIteration
|
192 | 223 |
|
193 | 224 | .. exception:: SyntaxError
|
194 | 225 |
|
195 | 226 | .. exception:: SystemExit
|
196 | 227 |
|
197 |
| - |see_cpython| :py:class:`cpython:SystemExit`. |
| 228 | +.. exception:: TimeoutError |
198 | 229 |
|
199 | 230 | .. exception:: TypeError
|
200 | 231 |
|
201 |
| - |see_cpython| :py:class:`cpython:TypeError`. |
| 232 | +.. exception:: UnicodeError |
202 | 233 |
|
203 | 234 | .. exception:: ValueError
|
204 | 235 |
|
205 | 236 | .. exception:: ZeroDivisionError
|
| 237 | + |
| 238 | +Constants |
| 239 | +--------- |
| 240 | + |
| 241 | +.. data:: Ellipsis |
| 242 | + |
| 243 | +.. data:: NotImplemented |
0 commit comments