how to pass a file descriptor in a swig module

Gerhard Häring gh at ghaering.de
Wed Jul 2 08:08:17 EDT 2003


kj.kjn wrote:
> 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





More information about the Python-list mailing list