3 ms·
Some of them seem like litmus test for a Python programmer interview, others feel like WTFs Python LoL! It is hard to disambiguate them. Standing on their own i
by sitkack 9y ago
Some of them seem like litmus test for a Python programmer interview, others feel like WTFs Python LoL! It is hard to disambiguate them. Standing on their own in that twitter feed, with little context, there is next to no enlightenment.
Lots of the oddities could be explained by
In [1]: list({'a':1, 'b':2, 'c':3})
Out[1]: ['a', 'b', 'c']
When people would expect
In [2]: list({'a':1, 'b':2, 'c':3}.items())
Out[2]: [('a', 1), ('b', 2), ('c', 3)]
Lots of Python makes sense. About 3% does not. It is good to know the 3% so it doesn't bite one in the ass. Maybe switch to image posts? 1 megapixel limit.