bpo-42266: Handle monkey-patching descriptors in LOAD_ATTR cache · python/cpython@93f05ba · GitHub
Skip to content

Commit 93f05ba

Browse files
committed
bpo-42266: Handle monkey-patching descriptors in LOAD_ATTR cache
1 parent 789359f commit 93f05ba

4 files changed

Lines changed: 28 additions & 7 deletions

File tree

Lib/test/test_opcache.py

Lines changed: 23 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fixed a bug with the LOAD_ATTR opcode cache that was not respecting
2+
monkey-patching a class-level attribute to make it a descriptor. Patch by
3+
Pablo Galindo.

PCbuild/lib.pyproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,7 @@
11961196
<Compile Include="test\test_nntplib.py" />
11971197
<Compile Include="test\test_ntpath.py" />
11981198
<Compile Include="test\test_numeric_tower.py" />
1199+
<Compile Include="test\test_opcache.py" />
11991200
<Compile Include="test\test_opcodes.py" />
12001201
<Compile Include="test\test_openpty.py" />
12011202
<Compile Include="test\test_operator.py" />

Python/ceval.c

Lines changed: 1 addition & 7 deletions

0 commit comments

Comments
 (0)