def await_gc(obj, rc):
 for i in range(50):
  if (grc(obj) <= (rc + 2)):
   return
  time.sleep(0.05)

def await_gc ( obj , rc ) : for i in range ( 50 ) : if ( grc ( obj ) <= ( rc + 2 ) ) : return time . sleep ( 0.05 )
wait for refcount on an object to drop to an expected value necessary because of the zero-copy gc thread .