[issue45911] SystemError occured while running an extention

2021-11-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue45911] SystemError occured while running an extention

2021-11-28 Thread Eric V. Smith
Eric V. Smith added the comment: At first glance, it looks like: if(!(PyArg_ParseTuple(args,"s",s))) return NULL; should be: if(!(PyArg_ParseTuple(args,"s",&s))) return NULL; The docs say: "A pointer to an existing string is stored in the character pointer variable whose address you pass." -

[issue45911] SystemError occured while running an extention

2021-11-27 Thread xmlsax
New submission from xmlsax <1627213...@qq.com>: I got an while running openfile.open. Python release 3.9.6 -- components: C API files: openfile.c messages: 407182 nosy: xmlsax priority: normal severity: normal status: open title: SystemError occured while running an extention type: be