Hi

For constant tuples ( once whose items are expressed by literals ) it is true.

Thanks
Harsh


On Sat, Jun 7, 2014 at 3:19 AM, Ricordisamoa <ricordisamoa@openmailbox.org> wrote:
Should we always use tuples when instantiating them only once? E.g.
if abc in ('e', 'f'):
instead of
if abc in ['e', 'f']:

They appear to be slightly faster sometimes.

_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l




--
Harsh Kothari
Intern at Google Summer of Code,
Wikimedia Foundation
Follow Me : harshkothari410