how to pass a file descriptor in a swig module

K

kj.kjn

My function func(File * des) is embedded in a module swig.

I would to know how to call this function from python script and if it's
necessay

to declare a typemaps ?

Thank you
 
?

=?ISO-8859-1?Q?Gerhard_H=E4ring?=

kj.kjn said:
My function func(File * des) is embedded in a module swig.

I would to know how to call this function from python script and if it's
necessay

to declare a typemaps ?

Not sure if that helps here, but Python file objects have a function
called fileno() to return the file number.

-- Gerhard
 
P

Pierre Schnizer

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top