-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Expand file tree
/
Copy pathirbuild-weakref.test
More file actions
103 lines (88 loc) · 1.9 KB
/
irbuild-weakref.test
File metadata and controls
103 lines (88 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[case testWeakrefRef]
import weakref
from typing import Any, Callable
def f(x: object) -> object:
return weakref.ref(x)
[out]
def f(x):
x, r0 :: object
L0:
r0 = PyWeakref_NewRef(x, 0)
return r0
[case testWeakrefRefCallback]
import weakref
from typing import Any, Callable
def f(x: object, cb: Callable[[object], Any]) -> object:
return weakref.ref(x, cb)
[out]
def f(x, cb):
x, cb, r0 :: object
L0:
r0 = PyWeakref_NewRef(x, cb)
return r0
[case testFromWeakrefRef]
from typing import Any, Callable
from weakref import ref
def f(x: object) -> object:
return ref(x)
[out]
def f(x):
x, r0 :: object
L0:
r0 = PyWeakref_NewRef(x, 0)
return r0
[case testFromWeakrefRefCallback]
from typing import Any, Callable
from weakref import ref
def f(x: object, cb: Callable[[object], Any]) -> object:
return ref(x, cb)
[out]
def f(x, cb):
x, cb, r0 :: object
L0:
r0 = PyWeakref_NewRef(x, cb)
return r0
[case testWeakrefProxy]
import weakref
from typing import Any, Callable
def f(x: object) -> object:
return weakref.proxy(x)
[out]
def f(x):
x, r0 :: object
L0:
r0 = PyWeakref_NewProxy(x, 0)
return r0
[case testWeakrefProxyCallback]
import weakref
from typing import Any, Callable
def f(x: object, cb: Callable[[object], Any]) -> object:
return weakref.proxy(x, cb)
[out]
def f(x, cb):
x, cb, r0 :: object
L0:
r0 = PyWeakref_NewProxy(x, cb)
return r0
[case testFromWeakrefProxy]
from typing import Any, Callable
from weakref import proxy
def f(x: object) -> object:
return proxy(x)
[out]
def f(x):
x, r0 :: object
L0:
r0 = PyWeakref_NewProxy(x, 0)
return r0
[case testFromWeakrefProxyCallback]
from typing import Any, Callable
from weakref import proxy
def f(x: object, cb: Callable[[object], Any]) -> object:
return proxy(x, cb)
[out]
def f(x, cb):
x, cb, r0 :: object
L0:
r0 = PyWeakref_NewProxy(x, cb)
return r0