[issue6762] strange string representation of xrange in print

Mintaka report at bugs.python.org
Sat Aug 22 21:12:20 CEST 2009


New submission from Mintaka <mintaka at post.cz>:

String representation of xrange return keyword with value.

foo = xrange(5)
print foo
>>> xrange(5)
foo.__str__() 
>>> xrange(5)

I think, that expected result should be somethink like this:
>>> <xrange object at 0x00AFB970>

----------
components: Interpreter Core
messages: 91871
nosy: mintaka
severity: normal
status: open
title: strange string representation of  xrange in print
versions: Python 2.5, Python 2.6

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


More information about the Python-bugs-list mailing list