Message316453
| Author | berker.peksag |
|---|---|
| Recipients | Amit.Saha, berker.peksag, docs@python |
| Date | 2018-05-13.06:13:37 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1526192017.95.0.682650639539.issue33478@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
'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' |
|
| History | |||
|---|---|---|---|
| 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 | |