[issue8417] bytes and bytearray constructors raise TypeError for very large ints

Eugene Kapun report at bugs.python.org
Fri Apr 16 09:43:56 CEST 2010


New submission from Eugene Kapun <abacabadabacaba at gmail.com>:

>>> bytes(10)
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
>>> bytes(10 ** 100)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'int' object is not iterable

----------
components: Interpreter Core
messages: 103300
nosy: abacabadabacaba
severity: normal
status: open
title: bytes and bytearray constructors raise TypeError for very large ints
type: behavior
versions: Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8417>
_______________________________________


More information about the Python-bugs-list mailing list