Newbie question - better way to do this?

Nis Jørgensen nis at superlativ.dk
Mon May 28 04:16:14 EDT 2007


Steve Howell skrev:

> def firstIsCapitalized(word):
>     return 'A' <= word[0] <= 'Z'

For someone who is worried about the impact of non-ascii identifiers,
you are making surprising assumptions about the contents of data.

Nis



More information about the Python-list mailing list