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

Albert-Jan Roskam fomcl at yahoo.com
Thu Dec 2 20:56:44 CET 2010


Hi,

Thank you! Woaah, very cool code btw. There's much to learn from it, for me at 
least.

 Cheers!!
Albert-Jan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public 
order, irrigation, roads, a fresh water system, and public health, what have the 
Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




________________________________
From: Emile van Sebille <emile at fenx.com>
To: tutor at python.org
Sent: Thu, December 2, 2010 8:16:19 PM
Subject: Re: [Tutor] Is there any way I can use named tuples in Python 2.5?

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

_______________________________________________
Tutor maillist  -  Tutor at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101202/1b3af760/attachment.html>


More information about the Tutor mailing list