[Python-ideas] ('blue', 'red', 'orange' if something, 'green')
Andre Engels
andreengels at gmail.com
Fri Apr 22 12:52:05 CEST 2011
On Fri, Apr 22, 2011 at 12:48 PM, cool-RR <cool-rr at cool-rr.com> wrote:
> I see. It's about as elegant as the other suggestions. And it's pretty
> annoying to use a list when I really wanted to use a tuple. Yeah, I can
> convert it to a tuple at the end, but that's just making it more verbose.
But why do you want to have a tuple? A list is the logical Python
translation of this kind of semantics.
--
André Engels, andreengels at gmail.com
More information about the Python-ideas
mailing list