10000 gh-131798: Use `sym_new_type` instead of `sym_new_not_null` for `_BUILD_LIST`, `_BUILD_SLICE`, and `_BUILD_MAP` by Zheaoli · Pull Request #132434 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-131798: Use sym_new_type instead of sym_new_not_null for _BUILD_LIST, _BUILD_SLICE, and _BUILD_MAP #132434

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
Changes from 1 commit
Commits
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
fix review idea
Signed-off-by: Manjusaka <me@manjusaka.me>
  • Loading branch information
Zheaoli committed Apr 16, 2025
commit 839a749daf3700d79ea90ad29b4a2ce34ea72b8e
4 changes: 2 additions & 2 deletions Lib/test/test_capi/test_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1678,7 +1678,7 @@ def f(n):
x = 0
for _ in range(n):
d = {}
d["Spam"] = 1 # Guarded...
d["Spam"] = 1 # unguarded!
x += d["Spam"] # ...unguarded!
return x

Expand All @@ -1695,7 +1695,7 @@ def f(n):
x = 0
for _ in range(n):
l = [0]
l[0] = 1 # Guarded...
l[0] = 1 # unguarded!
[a] = l # ...unguarded!
b = l[0] # ...unguarded!
if l: # ...unguarded!
Expand Down
Loading
0