Lines Matching full:__reduce__
303 # Check for a __reduce_ex__ method, fall back to __reduce__
308 reduce = getattr(obj, "__reduce__", None)
362 # A __reduce__ implementation can direct protocol 2 to
365 # work, the function returned by __reduce__ should be
378 # (see load_newobj below). If __reduce__ returns a
408 # well): when __reduce__ returns a tuple with 4 or 5 items,