Improve clear() method. Keeps key/value refcnts >= 1 until final dict.clear()...
Improve clear() method. Keeps key/value refcnts >= 1 until final dict.clear() so that decrefs to zero won't trigger arbitrary code . Also runs a bit faster.
Showing
Please register or sign in to comment