[issue44152] .isupper() does not support Polytonic Greek (but .islower() does)

2021-05-16 Thread E G

New submission from E G :

Δημοϲθενικοί starts with an upper-case delta. 'Δημοϲθενικοί'.isupper() should 
yield "True".

Ἀεὶ also fails this test: it begins with a capital Alpha with a breathing.

εἰϲ is properly parsed: isupper() is False and islower() is True. 

Despite the problem with .isupper(), .capitalize() does seem to work properly: 
'ὦ' --> 'Ὦ' and 'ἂν' --> 'Ἂν'


a transcript follows



Python 3.9.5 (default, May  4 2021, 03:36:27)

Greek vs .isupper(): seems like .islower() is properly implemented but 
that .isupper() is not

>>> 'ζῳώδηϲ'.islower()
True
>>> 'Δημοϲθενικοί'.islower()
False
>>> 'Δημοϲθενικοί'.isupper()
False
>>> x = 'Ἀεὶ'
>>> x.islower()
False
>>> x.isupper()
False
>>> x = 'εἰϲ'
>>> x.isupper()
False
>>> x.islower()
True
>>> x = 'ἂν'
>>> x.islower()
True
>>> x.isupper()
False
>>> x= 'ὦ'
>>> x.isupper()
False
>>> x.islower()
True

>>> x.capitalize()
'Ὦ'
>>> 'ἂν'.capitalize()
'Ἂν'

--
messages: 393759
nosy: egun
priority: normal
severity: normal
status: open
title: .isupper() does not support Polytonic Greek (but .islower() does)
type: behavior
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue44152>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44152] [not a bug] .isupper() does not support Polytonic Greek (but .islower() does)

2021-05-16 Thread E G


E G  added the comment:

Oops: this is not a bug. The isupper() method tests ALL chars.

Only the first char in the examples was a capital. All of the logic/tests 
succeed.

Sorry for the error. Thanks to Serhiy S. for swift attention on this.

--
resolution:  -> not a bug
title: .isupper() does not support Polytonic Greek (but .islower() does) -> 
[not a bug] .isupper() does not support Polytonic Greek (but .islower() does)

___
Python tracker 
<https://bugs.python.org/issue44152>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com