Newbie: finding the key/index of the min/max element

Patrick W quitelikely at yahoo.com.au
Wed May 1 06:12:21 EDT 2002


Alex Martelli <aleax at aleax.it> writes:

> I just hope I'll be in one of my time-management-necessitated
> periods of abstinence from this group next time some newbie
> arrogantly and querulously teaches us why Python should have
> [a] explicit block delimiters, [b] join as a method of all the
> possible sequences and not of joiner-objects, [c] hygienic
> macros, [d] booleans -- 

I'd like to add an [e] proposed, ironically, by one of this thread's
more vocal participants (amidst 800-odd lines of rhetorical
exhibitionism, juvenile muscle-flexing and snide remarks):

[e] A ternary operator of the form: 
x = ( if 'superfluity' > 'ugliness' : 'insane' else: 'unpythonic' )



More information about the Python-list mailing list