3 ms·
>>> def a(b=3000): ... return b is 3000 [...] >>> a() True >>> a(b=3000) False That's not something I knew before. Corner cases like
by loa_in_ 6y ago
>>> def a(b=3000):
... return b is 3000
[...]
>>> a()
True
>>> a(b=3000)
False
That's not something I knew before. Corner cases like this put Python on par with JS, JS maybe even being less of an impossible to understand mess