|
From: Antti H. <re...@bu...> - 2015-05-31 11:30:23
|
New submission from Antti Haapala:
bytearray uses `Character.is*` methods to do the various bytearray.isxxx methods. This is not compatible with the CPython behaviour; Jython bytearray tests imply latin-1 character encoding, whereas CPython exactly does 7-bit ASCII testing.
CPython 2.7.9:
>>> bytearray('\xc0').isalpha()
False
and Jython:
>>> bytearray('\xc0').isalpha()
True
----------
components: Core
messages: 10092
nosy: ztane
severity: normal
status: open
title: bytearray isalpha behaviour different from Python 2
versions: Jython 2.7
_______________________________________
Jython tracker <re...@bu...>
<http://bugs.jython.org/issue2364>
_______________________________________
|