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.title() doesn't understand apostrophes #38798
Comments
Consider the following: steveg@speedy:~/jbox$ python
Python 2.2.3 (#1, Jun 4 2003, 02:54:59)
[GCC 3.3 (Debian)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> "I've fallen and i can't get up".title()
"I'Ve Fallen And I Can'T Get Up"
>>> That looks fairly non-standard to me. Apparently, the Thanks, |
Logged In: YES Unfortunately, this usage of the apostrophe is specific to |
Logged In: YES If the ' directly follows a letter, then it is being used for a |
Logged In: YES The determination of what actually constitutes a word is Also, I tried the VB and MS-Excel implementations (they call |
Logged In: YES Thanks, Raymond, for this investigation. Closing it as wont-fix - if you want an algorithm that |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: