[issue43408] about the method: title()
Christian Heimes
report at bugs.python.org
Fri Mar 5 09:47:44 EST 2021
Christian Heimes <lists at cheimes.de> added the comment:
This behavior is documented, https://docs.python.org/3/library/stdtypes.html#str.title
> The algorithm uses a simple language-independent definition of a word as groups of consecutive letters. The definition works in many contexts but it means that apostrophes in contractions and possessives form word boundaries, which may not be the desired result
The documentation also mentions a workaround.
----------
nosy: +christian.heimes
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43408>
_______________________________________
More information about the Python-bugs-list
mailing list