[docs] [issue33478] PEP 8 CapWords reference wrong?

Berker Peksag report at bugs.python.org
Sun May 13 02:13:38 EDT 2018

Berker Peksag <berker.peksag at gmail.com> added the comment:

'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().


You can also see this in the REPL:

    >>> "CapWord".split()
    >>> _[0].capitalize()  # '_' is a shortcut for the latest command

nosy: +berker.peksag
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

Python tracker <report at bugs.python.org>

More information about the docs mailing list