New issue 1995: PyPy3: pickle.dumps(-2**63) hangs forever
https://bitbucket.org/pypy/pypy/issue/1995/pypy3-pickledumps-2-63-hangs-forever

Lisandro Dalcin:

Could any of you please try to reproduce this?

```
#!shell
$ cat pkl.py 
import pickle
print(pickle.dumps(-2**63+1))
print(pickle.dumps(-2**63-1))
print(pickle.dumps(-2**63))

$ pypy3 pkl.py 
b'\x80\x03\x8a\x08\x01\x00\x00\x00\x00\x00\x00\x80.'
b'\x80\x03\x8a\t\xff\xff\xff\xff\xff\xff\xff\x7f\xff.'
```

and then the interpreter hangs forever.



_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to