New submission from Joao Paulo <jjpp...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue36562>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to