Trivial little change: when setting a member to an object, hold the
old value in a temporary and XDECREF it only after then new value has been set. This prevents the (unlikely) case where the destructor of the member uses the containing object -- it would find it in an undefined state.
G
Guido van Rossum committed
adf0e437cb15791c9bbfd99929388f3ff8e07e3a
Parent: 885215c