(test) ? a:b
Chris Angelico
rosuav at gmail.com
Wed Oct 22 05:27:33 EDT 2014
More information about the Python-list mailing list
Wed Oct 22 05:27:33 EDT 2014
- Previous message (by thread): (test) ? a:b
- Next message (by thread): (test) ? a:b
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Oct 22, 2014 at 8:16 PM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote: >> without not: >> j = [j+1, 3][j>=10] >> with not: >> j = [3, j+1][not (j>=10)] >> > > The death penalty should be reintroduced into the UK for two crimes, writing > code like the above and using google groups. No no no. Code like that doesn't deserve death, just community service. I've seen much MUCH worse... where multiple conditional expressions get combined arithmetically, and then the result used somewhere... I also may have been guilty of same, myself, though I'm going to plead the internet's equivalent of the Fifth Amendment to the US Constitution and not incriminate myself by showing the code... ChrisA
- Previous message (by thread): (test) ? a:b
- Next message (by thread): (test) ? a:b
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list