Message301948
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. |
|
Date |
User |
Action |
Args |
2017-09-12 11:05:00 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, rhettinger, pitrou, benjamin.peterson, hodgestar, Arfrever, python-dev, eric.snow, robagar |
2017-09-12 11:05:00 | serhiy.storchaka | set | messageid: <1505214300.64.0.943126255305.issue16251@psf.upfronthosting.co.za> |
2017-09-12 11:05:00 | serhiy.storchaka | link | issue16251 messages |
2017-09-12 11:05:00 | serhiy.storchaka | create | |
|