Re:Python Is Eating the World
by d0mine on Monday August 12, 2019 @02:01PM
(#20678096)
> 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
There is no such thing in Python. You should get NameError if a name doesn't refer to any object.