Serhiy Storchaka added the comment:

What the problem tries to solve PR 3508? Swallowing all exceptions looks like 
an antipattern to me. This puts the problem under the carpet. Rather than 
failing and allowing the programmer to fix the picleability of its class, this 
can silently produce incorrect pickle data. By swallowing MemoryError and 
RecursionError this changes the behavior of objects in an environment with 
limited resources: lack of memory or calling deep in the calling stack. This 
adds heisenbugs. An infinity recursion spends CPU time, and in unlucky cases 
can cause a crash. It is better to detect it earlier than just swallow 
RecursionError.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue16251>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to