This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:37berker.peksagsetrecipients: + berker.peksag, docs@python, Amit.Saha
2018-05-13 06:13:37berker.peksagsetmessageid: <1526192017.95.0.682650639539.issue33478@psf.upfronthosting.co.za>
2018-05-13 06:13:37berker.peksaglinkissue33478 messages
2018-05-13 06:13:37berker.peksagcreate