Message93220
| Author |
twb |
| Recipients |
markon, nickd, twb |
| Date |
2009年09月28日.17:51:17 |
| SpamBayes Score |
2.3172575e-12 |
| Marked as misclassified |
No |
| Message-id |
<1254160278.82.0.100931518496.issue7008@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The string module, however, fails to properly capitalize anything in quotes:
>>> string.capwords("i pity the 'foo'.")
"I Pity The 'foo'."
The string module could be easily made to work like the object. The
object could be made to work more like the module, only capitalizing
things after a space and the start of the string, but I'm not really
sure that it's any better. (The s.istitle() should also be updated if
s.title() is changed.) The inconsistency is pretty nasty, though, and
the documentation should probably be more specific about what's going on. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年09月28日 17:51:18 | twb | set | recipients:
+ twb, markon, nickd |
| 2009年09月28日 17:51:18 | twb | set | messageid: <1254160278.82.0.100931518496.issue7008@psf.upfronthosting.co.za> |
| 2009年09月28日 17:51:17 | twb | link | issue7008 messages |
| 2009年09月28日 17:51:17 | twb | create |
|