aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-05-31 04:13:39 +0200
committerBenjamin Peterson <benjamin@python.org>2019-05-30 19:13:39 -0700
commit530f506ac91338b55cf2be71b1cdf50cb077512f (patch)
tree35e5a5e077198451bdfb79d2ce18e855b02d2f28 /Objects/weakrefobject.c
parentbpo-29262: Add get_origin() and get_args() introspection helpers to typing (G... (diff)
downloadcpython-530f506ac91338b55cf2be71b1cdf50cb077512f.tar.gz
cpython-530f506ac91338b55cf2be71b1cdf50cb077512f.tar.bz2
cpython-530f506ac91338b55cf2be71b1cdf50cb077512f.zip
bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464)
Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async
Diffstat (limited to 'Objects/weakrefobject.c')
-rw-r--r--Objects/weakrefobject.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c
index ff6d92254f7..8b8e71031af 100644
--- a/Objects/weakrefobject.c
+++ b/Objects/weakrefobject.c
@@ -354,10 +354,10 @@ _PyWeakref_RefType = {
sizeof(PyWeakReference),
0,
weakref_dealloc, /*tp_dealloc*/
- 0, /*tp_print*/
+ 0, /*tp_vectorcall_offset*/
0, /*tp_getattr*/
0, /*tp_setattr*/
- 0, /*tp_reserved*/
+ 0, /*tp_as_async*/
(reprfunc)weakref_repr, /*tp_repr*/
0, /*tp_as_number*/
0, /*tp_as_sequence*/
@@ -674,10 +674,10 @@ _PyWeakref_ProxyType = {
0,
/* methods */
(destructor)proxy_dealloc, /* tp_dealloc */
- 0, /* tp_print */
+ 0, /* tp_vectorcall_offset */
0, /* tp_getattr */
0, /* tp_setattr */
- 0, /* tp_reserved */
+ 0, /* tp_as_async */
(reprfunc)proxy_repr, /* tp_repr */
&proxy_as_number, /* tp_as_number */
&proxy_as_sequence, /* tp_as_sequence */
@@ -708,10 +708,10 @@ _PyWeakref_CallableProxyType = {
0,
/* methods */
(destructor)proxy_dealloc, /* tp_dealloc */
- 0, /* tp_print */
+ 0, /* tp_vectorcall_offset */
0, /* tp_getattr */
0, /* tp_setattr */
- 0, /* tp_reserved */
+ 0, /* tp_as_async */
(unaryfunc)proxy_repr, /* tp_repr */
&proxy_as_number, /* tp_as_number */
&proxy_as_sequence, /* tp_as_sequence */