Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Black – Uncompromising Python code formatter. Parent comment
what do you think the result of
def cmplt((type_a, value_a), (type_b, value_b)): return locals()
That's wrong. It has those four keys, and two more: '.0' and .1', whose values are the packed tuples.
!?!?!
There are no comments on this comment yet.
what do you think the result of
is? Now granted, you shouldn't do that, but what you think it is? a dict with 4 keys, right? {'type_a': ..., 'value_b': ...}.That's wrong. It has those four keys, and two more: '.0' and .1', whose values are the packed tuples.
!?!?!