[New-bugs-announce] [issue25620] Bytes Issue
Marios Kourtesis
report at bugs.python.org
Fri Nov 13 14:16:42 EST 2015
New submission from Marios Kourtesis:
Hello,
Executing the following code in a Python2 interpreter the result is True while running the same code in Python3 is False. I tested this in Python version 2.7.10 and 3.4.2.
a = b'a'
b = b'b'
c = a+b
c[1] == b'b'
When I call type(c[1]) in Python2 I get str:
type(c[1])
<type 'str'>
While in Python3 I get int:
type(c[1])
<class 'int'>
Is this the expected behavior?
----------
components: Interpreter Core
messages: 254613
nosy: Marios Kourtesis
priority: normal
severity: normal
status: open
title: Bytes Issue
type: behavior
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25620>
_______________________________________
More information about the New-bugs-announce
mailing list