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


Groups > comp.lang.python > #34592

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

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <skippy.hammond@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:sourceforge': 0.03; 'params': 0.07; 'supported,': 0.07; 'python': 0.09; 'terry': 0.09; 'to:addr:comp.lang.python': 0.09; 'tuple': 0.09; 'cc:addr:python- list': 0.10; 'subject:python': 0.11; 'assume': 0.11; 'extensions': 0.13; 'bitbucket': 0.16; 'from:name:mark hammond': 0.16; 'reedy': 0.16; 'reply-to:addr:mhammond': 0.16; 'reply- to:addr:skippinet.com.au': 0.16; 'subject: \n ': 0.16; 'subject:accessing': 0.16; 'subject:which': 0.16; 'url:pywin32': 0.16; 'wrote:': 0.17; 'subject:) ': 0.20; 'object.': 0.22; 'help.': 0.22; 'cc:2**0': 0.23; 'monday,': 0.23; 'to:2**1': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header :In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'looks': 0.26; 'supported': 0.26; 'am,': 0.27; 'easiest': 0.27; 'install': 0.29; 'knows': 0.30; 'url:source': 0.30; 'function': 0.30; 'december': 0.32; 'received:209.85.160.46': 0.32; 'handle': 0.33; 'point.': 0.33; 'received:google.com': 0.34; 'list': 0.35; 'received:192.168.0': 0.35; 'received:209.85': 0.35; 'message- id:@gmail.com': 0.36; 'email addr:python.org': 0.36; 'too': 0.36; 'subject: (': 0.36; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'object': 0.38; 'received:192': 0.39; 'little': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'header:Reply-To:1': 0.68; 'believe': 0.69; 'reply-to:no real name:2**0': 0.72; 'hoping': 0.72; 'pain': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=cOvPqZrY+OviG6VZBw3BkeSxnZZKV4VxzUZ3qhaAZIk=; b=RlBuSEG5SwcTI3GarwUXSI/YYr3OGDNFArjpirI+quN35sHfPqmhScp58EeNP0A3k4 hmZtPs9HUE9X7VFWyUt70aBjTMpHlgBC2SoTwELumATW7UEsGd3bbFfICW6mwTP36GfI TOamt/cdjtEc/enk9s/SkwiVS1a99FhNg3XFDodrQaifEDNVxBV43SM7WBgj5lLsd/6l RCOfzrgo5pFg2uA0S9rKT0tYium7ZvhWAgtKUK4G9zBk7VSIEP1OrNV5sFJt1HXtXviS rAoOlu/mSf4wM7PvTwEZjA64sEczDK0WBIy60BvQ4izieCX2khiXyzxiNxOuxli77qgU LhIg==
Date Tue, 11 Dec 2012 12:16:43 +1100
From Mark Hammond <skippy.hammond@gmail.com>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20121129 Thunderbird/19.0a2
MIME-Version 1.0
To bitbucket <coder1024@gmail.com>, comp.lang.python@googlegroups.com
Subject Re: accessing an OLE Automation (IDispatch) server from python which requires the use of "out params"
References <38a14001-82b6-4a91-b3ad-2cb5c8ee580d@googlegroups.com> <mailman.682.1355173145.29569.python-list@python.org> <ed7dd76c-c1f2-4d33-9e14-41e8be65c29a@googlegroups.com>
In-Reply-To <ed7dd76c-c1f2-4d33-9e14-41e8be65c29a@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To mhammond@skippinet.com.au
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.704.1355188608.29569.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1355188608 news.xs4all.nl 6900 [2001:888:2000:d::a6]:45443
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:34592

Show key headers only | View raw


On 11/12/2012 8:39 AM, bitbucket wrote:
> 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.

"out" params are best supported if the object supplied a typelib - then 
Python knows the params are out and does the right thing automagically. 
  If out params are detected, the result of the function will be a tuple 
of (real_result, out_param1, ...)

Even if no typelib is supported, you can access them with a little pain 
via the win32com.client.Dispatch() object.  You might like to follow up 
to the python-win32@python.org mailing list where many people will be 
able to help.

HTH,

Mark

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