[Tutor] Is there any way I can use named tuples in Python 2.5?

Emile van Sebille emile at fenx.com
Thu Dec 2 20:16:19 CET 2010


On 12/2/2010 9:52 AM Albert-Jan Roskam said...
> Hi,
>
> Is there any way I can use named tuples in Python 2.5? It's available since 2.6
> and I'm not sure if from "__future__" works. I can't try it here.
> I cannot simply upgrade Python (alas!)

Maybe this'll help...

http://code.activestate.com/recipes/500261/

Emile



More information about the Tutor mailing list