[New-bugs-announce] [issue31890] Please define the flag METH_STACKLESS for Stackless Python

Anselm Kruis report at bugs.python.org
Sat Oct 28 13:06:54 EDT 2017


New submission from Anselm Kruis <a.kruis at science-computing.de>:

The header Include/methodobject.h defines ml_flags METH_xxx.

Stackless Python adds the flag METH_STACKLESS. Traditionally Stackless used bit 0x0080 for METH_STACKLESS, but starting with C-Python 3.6 bit 0x0080 is used for METH_FASTCALL. 

In order to prevent future conflicts, I propose to add METH_STACKLESS to methodobject.h. 

#ifdef STACKLESS
#define METH_STACKLESS 0x0100
#else
#define METH_STACKLESS 0x0000
#endif

Include/object.h already contains a similar definition.

----------
components: Interpreter Core
messages: 305164
nosy: anselm.kruis
priority: normal
severity: normal
status: open
title: Please define the flag METH_STACKLESS for Stackless Python
type: enhancement
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31890>
_______________________________________


More information about the New-bugs-announce mailing list