Message350996
I'm not sure adding a check would solve this. What should be done when a function with func_code=NULL is called? "Silently do nothing" is not really an option; raising an exception wouldn't help much in this case.
I wonder if a function's tp_clear we should clear the mutable parts (like func_closure) before the immutable ones (func_code).
Any access to the immutable ones should have checks (and probably raise exceptions if those are NULL). |
|
Date |
User |
Action |
Args |
2019-09-02 12:55:34 | petr.viktorin | set | recipients:
+ petr.viktorin, pitrou, vstinner, christian.heimes, lukasz.langa, Mark.Shannon, jdemeyer, pablogsal |
2019-09-02 12:55:34 | petr.viktorin | set | messageid: <1567428934.03.0.355357208086.issue38006@roundup.psfhosted.org> |
2019-09-02 12:55:34 | petr.viktorin | link | issue38006 messages |
2019-09-02 12:55:33 | petr.viktorin | create | |
|