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


Groups > comp.lang.python > #34122

Re: Help accessing COM .dll from Python

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <albert@fsfe.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'modified': 0.05; 'arguments': 0.07; 'parameter': 0.07; 'python': 0.09; 'curve': 0.09; 'reference:': 0.09; 'tuple': 0.09; 'subject:Help': 0.10; 'steve': 0.13; 'dec': 0.15; 'interfaces': 0.15; 'sat,': 0.15; 'slightly': 0.15; 'value.': 0.15; "'c',": 0.16; 'filename:fname piece:signature': 0.16; 'reasonably': 0.16; 'subject:accessing': 0.16; 'translation': 0.16; 'wrote:': 0.17; 'examples': 0.18; "i've": 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'plain': 0.27; 'interface': 0.27; 'chris': 0.28; 'subject: .': 0.33; 'to:addr:python-list': 0.33; 'excel': 0.33; 'that,': 0.34; 'thanks': 0.34; 'text.': 0.35; 'there': 0.35; 'received:org': 0.36; 'really': 0.36; 'but': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'does': 0.37; 'passed': 0.37; 'subject:: ': 0.38; 'speak': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'think': 0.40; 'your': 0.60; 'content- disposition:inline': 0.60; 'skip:u 10': 0.60; 'real': 0.61; 'response.': 0.67; 'hoping': 0.72; 'pitfalls,': 0.84; 'simmons': 0.84; 'albert': 0.91
X-Virus-Scanned Debian amavisd-new at cavendish
Date Sat, 1 Dec 2012 14:01:49 +0100
From Albert Dengg <albert@fsfe.org>
To python-list@python.org
Subject Re: Help accessing COM .dll from Python
References <50B9FC7D.2010403@gmail.com>
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IMjqdzrDRly81ofr"
Content-Disposition inline
In-Reply-To <50B9FC7D.2010403@gmail.com>
User-Agent Mutt/1.5.21 (2010-09-15)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
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.401.1354367361.29569.python-list@python.org> (permalink)
Lines 49
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1354367361 news.xs4all.nl 6985 [2001:888:2000:d::a6]:36131
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:34122

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sat, Dec 01, 2012 at 12:47:57PM +0000, Steve Simmons wrote:
> Gunther - Sorry about that, hoping this response comes through as
> plain text.
> 
> Chris - Thanks for the translation and the response.  Unfortunately,
> I don't speak 'C', and I think the learning curve for Python + COM
> should be slightly less steep.
i've had some some expirience using COM from python with pywin32, which
works reasonably well if your interfaces is documented.

as for examples beeing excel centric: it does not really matter, you
just have to look the real interface you want to use in the
documentation of your libary.

there are however some pitfalls, espesially with arguments passed by
reference: there not the parameter will be modified but you will have a
tuple as a return value.

albert

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


Thread

Re: Help accessing COM .dll from Python Albert Dengg <albert@fsfe.org> - 2012-12-01 14:01 +0100

csiph-web