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