This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akira
Recipients akira
Date 2012-09-24.20:28:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348518540.13.0.547483002596.issue16029@psf.upfronthosting.co.za>
In-reply-to
Content
>>> import sys
  >>> from pickle import dumps, loads
  >>> r = xrange(sys.maxsize)
  >>> len(r) == sys.maxsize
  True
  >>> pr = loads(dumps(r))
  >>> len(pr) == len(r)
  False
  >>> pr
  xrange(0)
  >>> r
  xrange(9223372036854775807)

It breaks multiprocessing module:
http://stackoverflow.com/questions/12569977/python-large-iterations-number-fail

It fails on 2.6.6, 2.7.3. It works correctly on 3.1-3.3, pypy 1.7-1.9  x86_64 Linux.
History
Date User Action Args
2012-09-24 20:29:00akirasetrecipients: + akira
2012-09-24 20:29:00akirasetmessageid: <1348518540.13.0.547483002596.issue16029@psf.upfronthosting.co.za>
2012-09-24 20:28:59akiralinkissue16029 messages
2012-09-24 20:28:59akiracreate