Mastering-Python-2e-code_2/CH_03_pythonic_syntax/T_24_overwriting_built-ins.rst
2022-05-05 18:25:55 +02:00

15 lines
251 B
ReStructuredText

>>> list = list((1, 2, 3))
>>> list
[1, 2, 3]
>>> list((4, 5, 6))
Traceback (most recent call last):
...
TypeError: 'list' object is not callable
>>> import = 'Some import'
Traceback (most recent call last):
...
SyntaxError: invalid syntax