8000 bpo-46409: Make generators in bytecode by markshannon · Pull Request #30633 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-46409: Make generators in bytecode #30633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Jan 20, 2022
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test.test_sys to account for smaller frames.
  • Loading branch information
markshannon committed Jan 18, 2022
commit c0800893d2d7da378a581bc80e032739f0bbdc1c
< ABAE copilot-diff-entry data-file-path="Lib/test/test_sys.py" >
4 changes: 2 additions & 2 deletions Lib/test/test_sys.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ class C(object): pass
def func():
return sys._getframe()
x = func()
check(x, size('3Pi3c8P2ic?P'))
check(x, size('3Pi3c7P2ic??P'))
# function
def func(): pass
check(func, size('14Pi'))
Expand All @@ -1403,7 +1403,7 @@ def bar(cls):
check(bar, size('PP'))
# generator
def get_gen(): yield 1
check(get_gen(), size('P2P4P4c8P2ic?P'))
check(get_gen(), size('P2P4P4c7P2ic??P'))
# iterator
check(iter('abc'), size('lP'))
# callable-iterator
Expand Down
0