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