• Thomas Kluyver's avatar
    bpo-25532: Protect against infinite loops in inspect.unwrap() (#1717) · f9169ce6
    Thomas Kluyver yazdı
    Some objects (like test mocks) auto-generate new objects on
    attribute access, which can lead to an infinite loop in
    inspect.unwrap().
    
    Ensuring references are retained to otherwise temporary objects
    and capping the size of the memo dict turns this case into a
    conventional exception instead.
    f9169ce6
inspect.py 113 KB