On Wednesday 29 May 2002 09:32 pm, Guido van Rossum wrote: ... > > {"istitle", (PyCFunction)string_istitle, METH_NOARGS, istitle__doc__}, ... > I think all of the unicode methods should be added to 8-bit strings, > even if they are just aliases for others (what's title case applied to > Latin-1? I suppose same as upper case?). Current Python strings DO have .istitle() -- it means "the first letter of each substring made of letters is uppercase, all the other letters in the substring are lowercase". (It also means the string DOES have some letters -- I always find it quite tricky that all the string iswhatever methods return False when called on an empty string). >>> "Pol23Zap And Plee+Kuup!".istitle() True Alex
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4