2 ms·
> Python happily went along with it, used an uninitialized value There is no such thing in Python. You should get NameError if a name doesn't refer to any obje
by d0mine 7y ago
> Python happily went along with it, used an uninitialized value
There is no such thing in Python. You should get NameError if a name doesn't refer to any object.
>>> def f():
... name
...
>>> f()
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 2, in f
NameError: name 'name' is not defined