Best way to check that you are at the beginning (the end) of an iterable?
Laurent
laurent.payot at gmail.com
Wed Sep 7 20:53:36 EDT 2011
More information about the Python-list mailing list
Wed Sep 7 20:53:36 EDT 2011
- Previous message (by thread): Best way to check that you are at the beginning (the end) of an iterable?
- Next message (by thread): Best way to check that you are at the beginning (the end) of an iterable?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yes of course the use of a boolean variable is obvious but I'm mixing python code with html using Mako templates. In Mako for code readability reasons I try to stick to simple "for" and "if" constructions, and I try to avoid variables declarations inside the html, that's all. Thanks anyway.
- Previous message (by thread): Best way to check that you are at the beginning (the end) of an iterable?
- Next message (by thread): Best way to check that you are at the beginning (the end) of an iterable?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list