[Python-Dev] Python C API: Problem sending tuple to a method of a python Class (original) (raw)
Amaury Forgeot d'Arc amauryfa at gmail.com
Mon Jan 9 19:09:19 CET 2012
- Previous message: [Python-Dev] Python C API: Problem sending tuple to a method of a python Class
- Next message: [Python-Dev] Python C API: Problem sending tuple to a method of a python Class
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Good evening,
2012/1/9 <pasparis at noos.fr>
** I am trying to send a tuple to a method of a python class and I got a Run failed from netbeans compiler when I want to send a tuple to a simple method in a module it works,when I want to send a simple parameter to a method of a clas it works also but not a tuple to a method of a class
This mailing list is for the development of python. For development with python, please ask your questions on the comp.lang.python group or the python-list at python.org mailing list. There you will find friendly people willing to help.
[for your particular question: keep in mind that PyObject_Call takes arguments as a tuple; if you want to pass one tuple, you need to build a 1-tuple around your tuple]
-- Amaury Forgeot d'Arc -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120109/b53d5409/attachment.html>
- Previous message: [Python-Dev] Python C API: Problem sending tuple to a method of a python Class
- Next message: [Python-Dev] Python C API: Problem sending tuple to a method of a python Class
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]