[New-bugs-announce] [issue36562] Can't call a method from a module built in Python C API

Joao Paulo report at bugs.python.org
Mon Apr 8 11:37:32 EDT 2019


New submission from Joao Paulo <jjpp.of at gmail.com>:

I'm trying to build a python module in C++ using the Python C API and the code is attached.

The problem is when I run my_module.runTester() in PyRun_SimpleString. I get the following error message:

SystemError: Bad call flags in PyCFunction_Call. METH_OLDARGS is no longer supported!

I'm not using METH_OLDARGS. As you can see, I'm using METH_VARARGS | METH_KEYWORDS. What I could be missing here?

I'm using Windows 7 x64.

----------
files: module.cpp
messages: 339653
nosy: jjppof
priority: normal
severity: normal
status: open
title: Can't call a method from a module built in Python C API
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file48247/module.cpp

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


More information about the New-bugs-announce mailing list