Ned Deily added the comment:

What happens if you use xrange instead of range?

>>> range(1000000).__sizeof__()
8000056
>>> xrange(1000000).__sizeof__()
56

----------
nosy: +ned.deily

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22534>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to