A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-January/115425.html below:

[Python-Dev] Python C API: Problem sending tuple to a method of a python Class

[Python-Dev] Python C API: Problem sending tuple to a method of a python Class [Python-Dev] Python C API: Problem sending tuple to a method of a python ClassAmaury Forgeot d'Arc amauryfa at gmail.com
Mon Jan 9 19:09:19 CET 2012
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>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4