by: Helmut Jarausch |
last post by:
Hi,
is there a format code to return an unsigned int to Python via
Py_BuildValue? Just using code 'i' gives negative values for values
greater than 2**31.
I've tried the code 'I' (with python...
|
by: Christian Vogel |
last post by:
Hi comp.lang.python readers,
are there routines to create a Python integer from unsigned C-integers?
I only could find Py_BuildValue and PyInt_FromLong which both only use
signed c-integers....
|
by: Torsten Mohr |
last post by:
Hi,
when i write an extension module in C and return a Py_Object*
that i've built with Py_BuildValue, do i need to use Py_INCREF
on that before i return it to python from my extension module
or...
|
by: ashtonn |
last post by:
Hello,
How do i print values returned by Py_BuildValue in Linux?
PyObject *obj = Py_BuildValue("{s:i}", "Status", status);
I need to print the Status value here
-Thanks,
Ashton
|
by: Luke Miller |
last post by:
Hello,
I am working on my first python module based on a c program. The
module builds and installs OK using dist-utils, and imports fine into
python. However, when I try and use the one wrapper...
|
by: Martin Kulas |
last post by:
Hallo!
I have a problem with Py_BuildValue: I want to convert an unsigned int
to a PyObject *.
http://docs.python.org/api/arg-parsing.html says that I can use
"I" as a format string.
But it...
|
by: Sheldon |
last post by:
Hi,
I have a function that creates python objects out of C arrays and
returns them to Python. Below is a working example that I later want to
expand to return 12 arrays back to Python. The...
|
by: spectrumdt |
last post by:
Hello.
I am trying to extend Python with some C code. I made a trivial
"Hello World" program in C that I am trying to wrap in "boilerplate"
for inclusion in a Python program. But I can't compile...
|
by: Christian Meesters |
last post by:
Hi,
currently I have a problem understanding Py_BuildValue. I have this code:
static PyObject *function(PyObject *self, PyObject *args) {
PyObject * python_return_value = NULL;
PyObject *...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM).
In this month's session, the creator of the excellent VBE...
|
by: MeoLessi9 |
last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: Aftab Ahmad |
last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below.
Dim IE As Object
Set IE =...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: marcoviolo |
last post by:
Dear all,
I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|