Skip to content

Commit 7ee67a8

Browse files
author
Anselm Kruis
committed
Stackless issue python#201: enable stackless calls of "wrapper_descriptor"
objects, if soft-switching is enabled. The code has been in Stackless forever, but was disabled for some unknown reason.
1 parent 3629160 commit 7ee67a8

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Objects/descrobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ PyTypeObject PyWrapperDescr_Type = {
746746
0, /* tp_descr_set */
747747
};
748748

749-
/* STACKLESS_DECLARE_METHOD(&PyWrapperDescr_Type, tp_call) */
749+
STACKLESS_DECLARE_METHOD(&PyWrapperDescr_Type, tp_call)
750750

751751
static PyDescrObject *
752752
descr_new(PyTypeObject *descrtype, PyTypeObject *type, const char *name)

Stackless/changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ What's New in Stackless 3.X.X?
99

1010
*Release date: 20XX-XX-XX*
1111

12+
- https://github.com/stackless-dev/stackless/issues/201
13+
Enable stackless calls of "wrapper_descriptor" objects, if soft-switching is
14+
enabled. The code has been in Stackless forever, but was disabled for some
15+
unknown reason.
16+
1217
- https://github.com/stackless-dev/stackless/issues/200
1318
Fix a bug in the C-API functions PyTasklet_Run_nr() and
1419
PyTasklet_Switch_nr(). Under exotic conditions the functions could

Stackless/core/stackless_methods.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ static _stackless_method _stackless_methtable[] = {
1919
/* from descrobject.c */
2020
{&PyMethodDescr_Type, MFLAG_OFS(tp_call)},
2121
{&PyClassMethodDescr_Type, MFLAG_OFS(tp_call)},
22+
{&PyWrapperDescr_Type, MFLAG_OFS(tp_call)},
2223
{&_PyMethodWrapper_Type, MFLAG_OFS(tp_call)},
2324
/* from funcobject.c */
2425
{&PyFunction_Type, MFLAG_OFS(tp_call)},

0 commit comments

Comments
 (0)