Re: Python bindings tutorial

2010-03-19 Thread Alf P. Steinbach
* Tim Roberts: Dave Angel wrote: There's no real reason parts of an exe cannot be exported, same as a dll. They are in fact the same structure. And in fact many other files in the Windows environment are also the same structure, from fonts to ocx's This is a bit off-topic, but your explan

Re: Python bindings tutorial

2010-03-18 Thread Tim Roberts
Dave Angel wrote: >> >There's no real reason parts of an exe cannot be exported, same as a >dll. They are in fact the same structure. And in fact many other files >in the Windows environment are also the same structure, from fonts to ocx's Well, there IS a fundamental difference. EXEs and DL

Re: Python bindings tutorial

2010-03-18 Thread Alf P. Steinbach
* Dave Angel: Alf P. Steinbach wrote: * Dave Angel: Stefan Behnel wrote: mikelisa...@gmail.com, 17.03.2010 10:08: Its interesting you've mentioned the hard work involved in this interface (binding to an EXE instead of a DLL). A year or more ago I was looking at interfacing IPMITOOL to python.

Re: Python bindings tutorial

2010-03-18 Thread Dave Angel
Alf P. Steinbach wrote: * Dave Angel: Stefan Behnel wrote: mikelisa...@gmail.com, 17.03.2010 10:08: Its interesting you've mentioned the hard work involved in this interface (binding to an EXE instead of a DLL). A year or more ago I was looking at interfacing IPMITOOL to python. Do to the probl

Re: Python bindings tutorial

2010-03-17 Thread Terry Reedy
On 3/17/2010 8:18 AM, Stefan Behnel wrote: Dave Angel, 17.03.2010 12:14: Stefan Behnel wrote: I think the point here is that executable binaries are not supposed to be used as libraries. Libraries are. That's the difference between a DLL and an executable in the first place. To run an executabl

Re: Python bindings tutorial

2010-03-17 Thread Stefan Behnel
Dave Angel, 17.03.2010 12:14: Stefan Behnel wrote: I think the point here is that executable binaries are not supposed to be used as libraries. Libraries are. That's the difference between a DLL and an executable in the first place. To run an executable, execute it. The subprocess module is the

Re: Python bindings tutorial

2010-03-17 Thread Alf P. Steinbach
* Dave Angel: Stefan Behnel wrote: mikelisa...@gmail.com, 17.03.2010 10:08: Its interesting you've mentioned the hard work involved in this interface (binding to an EXE instead of a DLL). A year or more ago I was looking at interfacing IPMITOOL to python. Do to the problems incurred with swig/py

Re: Python bindings tutorial

2010-03-17 Thread Dave Angel
Stefan Behnel wrote: mikelisa...@gmail.com, 17.03.2010 10:08: Its interesting you've mentioned the hard work involved in this interface (binding to an EXE instead of a DLL). A year or more ago I was looking at interfacing IPMITOOL to python. Do to the problems incurred with swig/python I switched

Re: Python bindings tutorial

2010-03-17 Thread Stefan Behnel
mikelisa...@gmail.com, 17.03.2010 10:08: Its interesting you've mentioned the hard work involved in this interface (binding to an EXE instead of a DLL). A year or more ago I was looking at interfacing IPMITOOL to python. Do to the problems incurred with swig/python I switched to a running the pro

Re: Python bindings tutorial

2010-03-17 Thread mikelisa...@gmail.com
On Mar 16, 3:12 pm, "Gabriel Genellina" wrote: > En Tue, 16 Mar 2010 13:20:40 -0300, Johny escribió: > > > Is there any tutorial how to write a bindings for a exe ( dos) > > program? > > I would like to run it from a Python directly > > ( using import command and a particular function from the bi

Re: Python bindings tutorial

2010-03-16 Thread CHEN Guang
> Is there any tutorial how to write a bindings for a exe ( dos) > program? > I would like to run it from a Python directly > ( using import command and a particular function from the binding) > not using os.system command. An example: PythoidC ( http://pythoidc.googlecode.com ), look at import

Re: Python bindings tutorial

2010-03-16 Thread Terry Reedy
On 3/16/2010 3:12 PM, Gabriel Genellina wrote: En Tue, 16 Mar 2010 13:20:40 -0300, Johny escribió: Is there any tutorial how to write a bindings for a exe ( dos) program? I would like to run it from a Python directly ( using import command and a particular function from the binding) not using

Re: Python bindings tutorial

2010-03-16 Thread Gabriel Genellina
En Tue, 16 Mar 2010 13:20:40 -0300, Johny escribió: Is there any tutorial how to write a bindings for a exe ( dos) program? I would like to run it from a Python directly ( using import command and a particular function from the binding) not using os.system command. Do you mean that you want

Re: Python bindings tutorial

2010-03-16 Thread Joaquin Abian
On Mar 16, 5:20 pm, Johny wrote: > Is there any tutorial how to write a bindings for a exe ( dos) > program? > I would like to run it from a Python directly > ( using import command and a particular function from the binding) >  not using os.system command. > Thanks > L. subprocess ? -- http://m

Re: Python bindings tutorial

2010-03-16 Thread Joaquin Abian
On Mar 16, 5:20 pm, Johny wrote: > Is there any tutorial how to write a bindings for a exe ( dos) > program? > I would like to run it from a Python directly > ( using import command and a particular function from the binding) >  not using os.system command. > Thanks > L. subprocess ? -- http://m