Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commit60903f0
committed
FIX: account for changes to cpython with copy/deepcopy to super()
Seepython/cpython#126817 for upstream discussion.This works around the change by using (private) methods from the copy module tore-implement the path though copy/deepcopy that we would like to use but avoidthe special-casing for `super()` objects that is breaking us.We could vendor the current versions of `_keep_alive` (weakref work to managelifecycles) and `_reconstruct` (where the recursion happens) to superficiallyavoid using private functions from CPython. However, if these functions dochange significantly I worry that our copies would not inter-operate anyway.Closes#291571 parentc9c90c4 commit60903f0
2 files changed
+19
-2
lines changedLines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
| |||
282 | 283 |
| |
283 | 284 |
| |
284 | 285 |
| |
285 |
| - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
286 | 297 |
| |
287 | 298 |
| |
288 | 299 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| 41 | + | |
41 | 42 |
| |
42 | 43 |
| |
43 | 44 |
| |
| |||
141 | 142 |
| |
142 | 143 |
| |
143 | 144 |
| |
144 |
| - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
145 | 151 |
| |
146 | 152 |
| |
147 | 153 |
| |
|
0 commit comments
Comments
(0)