[Python-ideas] Faq 4.28 Suggestion -- Trailing comas

Szekeres István szekeres at iii.hu
Mon Mar 17 11:17:26 CET 2008


>  3. Creating one-element tuples using tuple(['hello']) syntax is much much
>  slower (a factor of 20x here) then writing just ['hello', ].

That should be ('hello',)



More information about the Python-ideas mailing list