Message291739
What are your thoughts Barry? staticmethod, classmethod and property objects are incorrectly pickled in 2.7 and 3.5 (they are not pickleable in 3.6+). Making them not pickleable in 2.7 and 3.5 can help to catch programming errors.
But this can break the code that "just works" (actually works incorrectly) if it pickles or deepcopies complex objects containing staticmethod, classmethod or property objects, but never use it. Similar situation happened in issue22995 with Cython objects.
Maybe emitting a warning rather than an exception would be safer? But deprecation warnings are ignored by default. |
|
Date |
User |
Action |
Args |
2017-04-16 06:34:24 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, alexandre.vassalotti, dangyogi |
2017-04-16 06:34:24 | serhiy.storchaka | set | messageid: <1492324464.03.0.864460847275.issue29902@psf.upfronthosting.co.za> |
2017-04-16 06:34:24 | serhiy.storchaka | link | issue29902 messages |
2017-04-16 06:34:23 | serhiy.storchaka | create | |
|