X Tutup
Skip to content
Merged
Changes from all commits
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
3 changes: 3 additions & 0 deletions extra_tests/snippets/vm_specialization.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## BinaryOp inplace-add unicode: deopt falls back to __add__/__iadd__


class S(str):
def __add__(self, other):
return "ADD"
Expand Down Expand Up @@ -36,6 +37,7 @@ def iadd_path_fallback_uses_iadd():

## BINARY_SUBSCR_STR_INT: ASCII singleton identity


def check_ascii_subscr_singleton_after_warmup():
s = "abc"
first = None
Expand All @@ -53,6 +55,7 @@ def check_ascii_subscr_singleton_after_warmup():

## BINARY_SUBSCR_STR_INT: Latin-1 singleton identity


def check_latin1_subscr_singleton_after_warmup():
for s in ("abc", "éx"):
first = None
Expand Down
Loading
X Tutup