2017 Python Language Summit: Lightning Talks

Without subscribers, LWN would simply not exist. Please consider
signing up for a subscription and helping
to keep LWN publishing… Read more

Similar

Python: default argument blunders

A few minutes ago a friend sent me the following code, and told me its misbehaving: def foo(l=[]): l.append("hello!") print(l) foo() foo() Instead of printing ["hello"] twice, it printed ["hello", "hello"]. Any ideas why? what's going on? I'll... (more…)

Read more »