This commit is contained in:
Jeff Epler 2023-09-20 11:22:34 -05:00
parent cd3ca6b6a6
commit 8e00c69cdf
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ Classes
Returns the string representation of the array, called as ``str(a)`` or ``repr(a)``` Returns the string representation of the array, called as ``str(a)`` or ``repr(a)```
(where ``a`` is an ``array``). Returns the string ``"array(<type>, [<elements>])"``, (where ``a`` is an ``array``). Returns the string ``"array(<type>, [<elements>])"``,
where ``<type>`` is the type code letter for the array and ``<elements>`` is a comma where ``<type>`` is the type code letter for the array and ``<elements>`` is a comma
seperated list of the elements of the array. separated list of the elements of the array.
**Note:** ``__repr__`` cannot be called directly (``a.__repr__()`` fails) and **Note:** ``__repr__`` cannot be called directly (``a.__repr__()`` fails) and
is not present in ``__dict__``, however ``str(a)`` and ``repr(a)`` both work. is not present in ``__dict__``, however ``str(a)`` and ``repr(a)`` both work.

View File

@ -767,7 +767,7 @@ STATIC const mp_rom_map_elem_t bytearray_locals_dict_table[] = {
#endif #endif
}; };
STATIC MP_DEFINE_CONST_DICT(bytearray_locals_dict, bytearray_locals_dict_table); MP_DEFINE_CONST_DICT(bytearray_locals_dict, bytearray_locals_dict_table);
#endif #endif