mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.
This commit is contained in:
parent
27be130ec7
commit
f488fb422a
31 changed files with 101 additions and 69 deletions
|
@ -3622,7 +3622,7 @@ save_reduce(PicklerObject *self, PyObject *args, PyObject *obj)
|
|||
>>> pickle.dumps(1+2j)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
RuntimeError: maximum recursion depth exceeded
|
||||
RecursionError: maximum recursion depth exceeded
|
||||
|
||||
Removing the complex class from copyreg.dispatch_table made the
|
||||
__reduce_ex__() method emit another complex object:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue