Commit 7607876
Refactor generator methods (#187690)
Summary:
Refactor `.close`, `.send` and `.throw` to follow CPython semantics.
X-link: pytorch/pytorch#187690
Approved by: https://github.com/rtimpe
Reviewed By: atalman
Differential Revision: D111351451
fbshipit-source-id: de9db03eb939df7be52bd1b0212aa80bd495e9491 parent ce084d4 commit 7607876
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5617 | 5617 | | |
5618 | 5618 | | |
5619 | 5619 | | |
| 5620 | + | |
| 5621 | + | |
| 5622 | + | |
| 5623 | + | |
| 5624 | + | |
| 5625 | + | |
| 5626 | + | |
| 5627 | + | |
| 5628 | + | |
5620 | 5629 | | |
5621 | 5630 | | |
5622 | 5631 | | |
| |||
0 commit comments