Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Stackless issue #201: enable stackless calls of "wrapper_descriptor" #201

Merged
merged 2 commits into from
Jan 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Objects/descrobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ PyTypeObject PyWrapperDescr_Type = {
0, /* tp_descr_set */
};

/* STACKLESS_DECLARE_METHOD(&PyWrapperDescr_Type, tp_call) */
STACKLESS_DECLARE_METHOD(&PyWrapperDescr_Type, tp_call)

static PyDescrObject *
descr_new(PyTypeObject *descrtype, PyTypeObject *type, const char *name)
Expand Down
5 changes: 5 additions & 0 deletions Stackless/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ What's New in Stackless 3.X.X?

*Release date: 20XX-XX-XX*

- https://github.com/stackless-dev/stackless/issues/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.

- https://github.com/stackless-dev/stackless/issues/192
Use the PEP 442 mechanic to finalize a tasklet instead of a arcane logic in
tp_dealloc. The finalizer can be called from Python-code: tasklet.__del__().
Expand Down
1 change: 1 addition & 0 deletions Stackless/core/stackless_methods.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ static _stackless_method _stackless_methtable[] = {
/* from descrobject.c */
{&PyMethodDescr_Type, MFLAG_OFS(tp_call)},
{&PyClassMethodDescr_Type, MFLAG_OFS(tp_call)},
{&PyWrapperDescr_Type, MFLAG_OFS(tp_call)},
{&_PyMethodWrapper_Type, MFLAG_OFS(tp_call)},
/* from funcobject.c */
{&PyFunction_Type, MFLAG_OFS(tp_call)},
Expand Down