This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients belopolsky, eric.araujo, ezio.melotti, lemburg, py.user, r.david.murray
Date 2011-07-21.08:34:22
SpamBayes Score 5.24429e-06
Marked as misclassified No
Message-id <4E27E487.3010802@egenix.com>
In-reply-to <1311224392.62.0.998821852335.issue12266@psf.upfronthosting.co.za>
Content
I think it would be better to use this code:

    if (!Py_UNICODE_ISUPPER(*s)) {
        *s = Py_UNICODE_TOUPPER(*s);
        status = 1;
    }
    s++;
    while (--len > 0) {
        if (Py_UNICODE_ISLOWER(*s)) {
            *s = Py_UNICODE_TOLOWER(*s);
            status = 1;
        }
        s++;
    }

Since this actually implements what the doc-string says.

Note that title case is not the same as upper case. Title case is
a special case that get's applied when using a string as a title
of a text and may well include characters that are lower case
but which are only used in titles.
History
Date User Action Args
2011-07-21 08:34:22lemburgsetrecipients: + lemburg, belopolsky, ezio.melotti, eric.araujo, r.david.murray, py.user
2011-07-21 08:34:22lemburglinkissue12266 messages
2011-07-21 08:34:22lemburgcreate