Message316453
'CapWord' is a single word so string.capwords() works as documented:
Split the argument into words using str.split(), capitalize each word
using str.capitalize(), and join the capitalized words using str.join().
https://docs.python.org/3/library/string.html#string.capwords
You can also see this in the REPL:
>>> "CapWord".split()
['CapWord']
>>> _[0].capitalize() # '_' is a shortcut for the latest command
'Capword' |
|
Date |
User |
Action |
Args |
2018-05-13 06:13:37 | berker.peksag | set | recipients:
+ berker.peksag, docs@python, Amit.Saha |
2018-05-13 06:13:37 | berker.peksag | set | messageid: <1526192017.95.0.682650639539.issue33478@psf.upfronthosting.co.za> |
2018-05-13 06:13:37 | berker.peksag | link | issue33478 messages |
2018-05-13 06:13:37 | berker.peksag | create | |
|