[Python-3000] Type Coersion Syntax

Ivan Krstic krstic at fas.harvard.edu
Thu Jul 6 20:26:46 CEST 2006


Calvin Spealman wrote:
>     # Get the first index of a value in a list
>     idx = 'b' from ['a', 'b', 'c']
>     assert idx == 'b'

'assert idx == 1'?

-- 
Ivan Krstic <krstic at fas.harvard.edu> | GPG: 0x147C722D


More information about the Python-3000 mailing list