News for hackers. Stuff that matters.
Re:Python idiom for taking the single item from a list by TorKlingberg on Monday September 27, 2010 @03:47PM (#1733063)
It is a good thing if code is readable by people who only know the language a little, only know similar languages, or have not used the language for years.
Re:Python idiom for taking the single item from a list by jfager on Monday September 27, 2010 @03:56PM (#1733109)
It is a good thing, but it isn't the highest good. It doesn't make sense to avoid useful basic features simply because they aren't immediately obvious to a novice in the language.
Re:Python idiom for taking the single item from a list by iron_ball on Monday September 27, 2010 @04:56PM (#1733381)
This is the argument I always have about the ternary syntax in C-like languages.