Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String.capwords() does not capitalize first word #45273

Closed
saatvik mannequin opened this issue Aug 3, 2007 · 2 comments
Closed

String.capwords() does not capitalize first word #45273

saatvik mannequin opened this issue Aug 3, 2007 · 2 comments
Labels
stdlib Python modules in the Lib dir

Comments

@saatvik
Copy link
Mannequin

saatvik mannequin commented Aug 3, 2007

BPO 1767363
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-08-04.06:50:20.000>
created_at = <Date 2007-08-03.22:48:45.000>
labels = ['invalid', 'library']
title = 'String.capwords() does not capitalize first word'
updated_at = <Date 2007-08-04.06:50:20.000>
user = 'https://bugs.python.org/saatvik'

bugs.python.org fields:

activity = <Date 2007-08-04.06:50:20.000>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2007-08-03.22:48:45.000>
creator = 'saatvik'
dependencies = []
files = []
hgrepos = []
issue_num = 1767363
keywords = []
message_count = 2.0
messages = ['32584', '32585']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'saatvik']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1767363'
versions = ['Python 2.6']

@saatvik
Copy link
Mannequin Author

saatvik mannequin commented Aug 3, 2007

Perhaps not the right category...nothing major but I noticed that string.capwords does not capitalize the first character of the first word of the string.

Email: legolas@stanford.edu

@saatvik saatvik mannequin closed this as completed Aug 3, 2007
@saatvik saatvik mannequin added invalid stdlib Python modules in the Lib dir labels Aug 3, 2007
@birkenfeld
Copy link
Member

Note that for byte strings, only letters in [a-z] will be correctly upcased.
If you want it to handle arbitrary letters correctly, use unicode strings.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant