Issue created. Sorry if this list is not meant for posting bugs.
Just trying to help out :)

http://bugs.python.org/issue2582

Thanks

--Anand

On Tue, Apr 8, 2008 at 5:58 PM, Anand Balachandran Pillai
<[EMAIL PROTECTED]> wrote:
> Found this behavior in py3k, a4...
>
>  Python 3.0a4+ (py3k:62126, Apr  3 2008, 16:28:40)
>  [GCC 4.1.2 20070626 (Red Hat 4.1.2-13)] on linux2
>  Type "help", "copyright", "credits" or "license" for more information.
>  >>> r=range(10)
>  >>> import pickle
>  >>> pickle.dumps(r)
>  b'\x80\x03cbuiltins\nrange\nq\x00)\x81q\x01.'
>  >>> pickle.loads(pickle.dumps(r))
>  Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/local/lib/python3.0/pickle.py", line 1341, in loads
>     return Unpickler(file).load()
>   File "/usr/local/lib/python3.0/pickle.py", line 823, in load
>     dispatch[key[0]](self)
>   File "/usr/local/lib/python3.0/pickle.py", line 1055, in load_newobj
>     obj = cls.__new__(cls, *args)
>  TypeError: range expected 1 arguments, got 0
>  >>>
>
>  Looks like a bug in unpickling range objects. Should I report this ?
>
>  Thanks
>  --
>  -Anand
>



-- 
-Anand
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to