Message122313
On Wed, Nov 24, 2010 at 3:37 PM, Marc-Andre Lemburg
<report@bugs.python.org> wrote:
..
> I don't think we should change that for the formatting methods.
That's a reasonable position. What about
'Lo'
>>> '\N{OLD ITALIC LETTER A}'.isalpha()
False
the str.isalpha() method is underspecified in the reference manual,
but a comment in unicodectype.c describes Py_UNICODE_ISALPHA as
follows:
/* Returns 1 for Unicode characters having the category 'Ll', 'Lu',
'Lt',
'Lo' or 'Lm', 0 otherwise. */
I don't have a wide build handy, but I am fairly sure '\N{OLD ITALIC
LETTER A}'.isalpha() would produce True there. The result above is
simply consequence of surrogates considered to be non-letters:
[False, False] |
|
Date |
User |
Action |
Args |
2010-11-25 05:01:52 | belopolsky | unlink | issue10521 messages |
2010-11-24 21:23:59 | belopolsky | set | recipients:
+ belopolsky, lemburg, pitrou, eric.smith, ezio.melotti |
2010-11-24 21:23:57 | belopolsky | link | issue10521 messages |
2010-11-24 21:23:57 | belopolsky | create | |
|