Message403819
| 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 |
<1634120825.12.0.401073205822.issue45247@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2021年10月13日 10:27:05 | Mark.Shannon | set | recipients:
+ Mark.Shannon, scoder, vstinner |
| 2021年10月13日 10:27:05 | Mark.Shannon | set | messageid: <1634120825.12.0.401073205822.issue45247@roundup.psfhosted.org> |
| 2021年10月13日 10:27:05 | Mark.Shannon | link | issue45247 messages |
| 2021年10月13日 10:27:05 | Mark.Shannon | create |
|