Alexandre Vassalotti <[EMAIL PROTECTED]> added the comment:

Weird. I wonder why it succeeds to pickle to range object at all. It
seems the __reduce_ex__ method emits bogus value.

  >>> r.__reduce_ex__(2)
  (<function __newobj__ at 0xb7bfdc94>, (<class 'range'>,), None, None,
None)

Anyway, that is easy to fix when you know the trick. So, here is the fix.

----------
assignee:  -> alexandre.vassalotti
keywords: +patch
nosy: +alexandre.vassalotti
Added file: http://bugs.python.org/file10530/fix_range_pickling.patch

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2582>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to