Skip to content
  • Paul Sokolovsky's avatar
    objgenerator.throw(GeneratorExit) is not equivalent to .close(). · 817e76a1
    Paul Sokolovsky authored
    .throw() propagates any exceptions, and .close() swallows them. Yielding
    in reponse to .throw(GeneratorExit) is still fatal, and we need to
    handle it for .throw() case separately (previously it was handled only
    for .close() case).
    
    Obscure corner cases due to test_pep380.py.
    817e76a1