Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 16edc5cf4a79 by Ezio Melotti in branch '3.2':
#12204: document that str.upper().isupper() might be False and add a note about
cased characters.
http://hg.python.org/cpython/rev/16edc5cf4a79
New changeset
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed, thanks for the report!
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12204
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Are you sure this should have been backported? Are there any apps that may be
working now but won't be after the next point release?
--
nosy: +rhettinger
___
Python tracker
Ezio Melotti ezio.melo...@gmail.com added the comment:
This is only a doc patch, maybe you are confusing this issue with #12266?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12204
___
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Right. I was looking at the other patches that went in in the last 24 hours.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12204
Ezio Melotti ezio.melo...@gmail.com added the comment:
It's unlikely that #12266 might break apps. The behavior changed only for
fairly unusual characters, and the old behavior was clearly wrong.
FWIW the str.capitalize() implementation of PyPy doesn't have the bug, and
after the fix both
Éric Araujo mer...@netwok.org added the comment:
Patch looks good, with one issue: I’ve never encountered “cased character”
before, is it an accepted term or an invention in our docs?
--
___
Python tracker rep...@bugs.python.org
Ezio Melotti ezio.melo...@gmail.com added the comment:
I think it's an invention, but its meaning is quite clear to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12204
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Here's a patch.
I don't think it's necessary to update the docstring.
--
assignee: docs@python - ezio.melotti
keywords: +patch
stage: - commit review
Added file: http://bugs.python.org/file22708/issue12204.diff
Ezio Melotti ezio.melo...@gmail.com added the comment:
New patch that factors out the definition of cased characters adding it to a
footnote.
--
Added file: http://bugs.python.org/file22709/issue12204-2.diff
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
A note sounds good.
--
assignee: - docs@python
components: +Documentation -Interpreter Core, Unicode
nosy: +docs@python, eric.araujo
versions: +Python 2.7 -Python 3.1
___
Python tracker
Ezio Melotti ezio.melo...@gmail.com added the comment:
'\u1ff3'.upper() returns '\u1ffc', so we have:
U+1FF3 (ῳ - GREEK SMALL LETTER OMEGA WITH YPOGEGRAMMENI)
U+1FFC (ῼ - GREEK CAPITAL LETTER OMEGA WITH PROSGEGRAMMENI)
The first belongs to the Ll (Letter, lowercase) category, whereas the
Marc-Andre Lemburg m...@egenix.com added the comment:
Ezio Melotti wrote:
Ezio Melotti ezio.melo...@gmail.com added the comment:
'\u1ff3'.upper() returns '\u1ffc', so we have:
U+1FF3 (ῳ - GREEK SMALL LETTER OMEGA WITH YPOGEGRAMMENI)
U+1FFC (ῼ - GREEK CAPITAL LETTER OMEGA WITH
New submission from py.user port...@yandex.ru:
specification
1)
str.upper()¶
Return a copy of the string converted to uppercase.
2)
str.isupper()¶
Return true if all cased characters in the string are uppercase and there
is at least one cased character, false otherwise. Cased
14 matches
Mail list logo