On 09/11/13 17:52, Ethan Furman wrote:
> On 09/11/2013 03:38 AM, Burak Arslan wrote:
>> On 09/10/13 09:09, Steven D'Aprano wrote:
>>> What design mistakes, traps or gotchas do you think Python has?
>>
>> My favourite gotcha is this:
>>
>>      elt, = elts
>>
>> It's a nice and compact way to do both:
>>
>>      assert len(elts) == 0
>
> Perhaps you meant 'assert len(elts) == 1' ?
>

yes :)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to