On 31/08/2011 04:39, Andreas wrote:
Am 30.08.2011 23:49, schrieb MRAB:
The key phrase is "argument tuple". The arguments passed to a Python
call are always a tuple, not PyFloat_Object.
You can build a tuple from the PyFloat_Object using:
Py_BuildValue("(O)", float_object)
The "(O)" says
Am 30.08.2011 23:49, schrieb MRAB:
> The key phrase is "argument tuple". The arguments passed to a Python
> call are always a tuple, not PyFloat_Object.
>
> You can build a tuple from the PyFloat_Object using:
>
> Py_BuildValue("(O)", float_object)
>
> The "(O)" says to build a tuple ("(...
On 30/08/2011 21:42, Andreas wrote:
Hi,
I'm working on a c-extension of python and want to create an instance of
python datetime object with a unix timestamp in c.
On the documentation site ( http://docs.python.org/c-api/datetime.html )
I found the function PyDateTime_FromTimestamp() which retu
Hi,
I'm working on a c-extension of python and want to create an instance of
python datetime object with a unix timestamp in c.
On the documentation site ( http://docs.python.org/c-api/datetime.html )
I found the function PyDateTime_FromTimestamp() which returns a new
reference based on an input