This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Mark.Shannon, scoder, vstinner
Date 2021-10-13.10:27:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I disagree. All that is doing is locking in the current poor interface.

We do need to extend the C API for these uses, yes. But we need an API that addresses Cython's needs directly and at a higher level.

For example, Cython often wants to insert a frame into the call stack for debugging and introspection.

Rather than have Cython laboriously create a Python frame with fake code object, etc., it would make much more sense for us to offer an API to insert a "native" frame into the stack and update the line number.

E.g. something like:

int PushNativeFrame(const char *filename);
void PopNativeFrame(void);
int CurrentNativeFrame_SetLineNumber(int lineno);

We might even want to use such an API ourselves in some modules.
Date User Action Args
2021-10-13 10:27:05Mark.Shannonsetrecipients: + Mark.Shannon, scoder, vstinner
2021-10-13 10:27:05Mark.Shannonsetmessageid: <>
2021-10-13 10:27:05Mark.Shannonlinkissue45247 messages
2021-10-13 10:27:05Mark.Shannoncreate