• Miss Islington (bot)'s avatar
    [3.6] bpo-31588: Validate return value of __prepare__() methods (GH-3790) · 084f80b8
    Miss Islington (bot) yazdı
    Class execution requires that __prepare__() methods return
    a proper execution namespace. Check for that immediately
    after calling __prepare__(), rather than passing it through
    to the code execution machinery and potentially triggering
    SystemError (in debug builds) or a cryptic TypeError
    (in release builds).
    
    Patch by Oren Milman.
    (cherry picked from commit 5837d041)
    084f80b8
bltinmodule.c 80.9 KB