Newbie question - better way to do this?

Steve Howell showell30 at yahoo.com
Mon May 28 11:49:52 EDT 2007


--- Nis Jørgensen <nis at superlativ.dk> wrote:

> 
> I disagree that word.istitle is the correct idiom -
> from the naming of
> the function in the original example, I would guess
> "word[0].isupper"
> would do the trick.
> 

<nitpick>
That would return something like this:

   <built-in method isupper of str object at 0x13ade0>

You want to add parens:

word[0].isupper()
</nitpick>





       
____________________________________________________________________________________Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz



More information about the Python-list mailing list