[New-bugs-announce] [issue44152] .isupper() does not support Polytonic Greek (but .islower() does)

E G report at bugs.python.org
Sun May 16 16:58:11 EDT 2021


New submission from E G <etg at antisigma.classics.utoronto.ca>:

Δημοϲθενικοί 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 <report at bugs.python.org>
<https://bugs.python.org/issue44152>
_______________________________________


More information about the New-bugs-announce mailing list