Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #34582

Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params"

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params"
Date 2012-12-10 18:39 -0500
Organization > Bestiaria Support Staff <
References <38a14001-82b6-4a91-b3ad-2cb5c8ee580d@googlegroups.com> <mailman.682.1355173145.29569.python-list@python.org> <ed7dd76c-c1f2-4d33-9e14-41e8be65c29a@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.694.1355182737.29569.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, 10 Dec 2012 13:39:00 -0800 (PST), bitbucket
<coder1024@gmail.com> declaimed the following in
gmane.comp.python.general:

> On Monday, December 10, 2012 3:58:33 PM UTC-5, Terry Reedy wrote:
> > I believe the easiest way to do that is to install the pywin extensions
> > 
> > http://sourceforge.net/projects/pywin32/?source=directory
> > 
> > I assume it can handle out params.
> 
> That definitely looks like a good starting point.  Just hoping someone knows whether or not it'll support the out params before I spend too much time digging into it.

	Well, Python itself doesn't handle "out" parameters... The win32
extensions mostly access the defined Win32 API... May not be that useful
for ad-hoc interfaces.

	The ctypes library may be a more direct means -- it interfaces
between Python objects (with specific attributes/properties) used as
data types and the C-language calling conventions... "ctypes exports the
byref() function which is used to pass parameters by reference"

	PowerShell likely uses the same method you'd need in Python --
passing a mutable object (an array in PS), but the receiver would need
to be expecting such an object.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" bitbucket <coder1024@gmail.com> - 2012-12-10 11:13 -0800
  Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" Terry Reedy <tjreedy@udel.edu> - 2012-12-10 15:58 -0500
    Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" bitbucket <coder1024@gmail.com> - 2012-12-10 13:39 -0800
      Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-12-10 18:39 -0500
      Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" Mark Hammond <skippy.hammond@gmail.com> - 2012-12-11 12:16 +1100
        Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" bitbucket <coder1024@gmail.com> - 2012-12-11 07:48 -0800
          Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" bitbucket <coder1024@gmail.com> - 2012-12-11 07:54 -0800
          Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" bitbucket <coder1024@gmail.com> - 2012-12-11 07:54 -0800
          Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" Mark Hammond <mhammond@skippinet.com.au> - 2012-12-12 08:55 +1100
        Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" bitbucket <coder1024@gmail.com> - 2012-12-11 07:48 -0800
    Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" bitbucket <coder1024@gmail.com> - 2012-12-10 13:39 -0800
  Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" Paul Kölle <paul@subsignal.org> - 2012-12-11 09:42 +0100
    Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" bitbucket <coder1024@gmail.com> - 2012-12-11 07:37 -0800
    Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params" bitbucket <coder1024@gmail.com> - 2012-12-11 07:37 -0800

csiph-web