Allen Fowler wrote:
Hello,

"He's a great guy".title()

Gives me:
"He'S A Great Guy"


I expected:

"He's A Great Guy"

Did i miss something here?

The docs state:

"title( ) - Return a titlecased version of the string: words start with uppercase characters, all remaining cased characters are lowercase."

It depends on the definition of "word".


--
Bob Gailer
Chapel Hill NC
919-636-4239
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to