2009/9/28 Christian Démolis <christiandemo...@gmail.com>:
> I need it to avoid  write this in my code
> for e in s:
>    print e[0]
>
> it's more difficult to read than

>From a readability point of view, you could use unpacking in your loop:

>>> for foo, bar in (("foo1", "bar1"), ("foo2", "bar2")):
...     print "%s: %s" % (foo, bar)
...
foo1: bar1
foo2: bar2

Alex

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to