Python and Windows Scripting Host

Alex Martelli alex at magenta.com
Tue Aug 8 04:21:20 EDT 2000


"Mark Hammond" <MarkH at ActiveState.com> wrote in message
news:HsHj5.4828$Ln4.45742 at news-server.bigpond.net.au...
> "Syver Enstad" <syver.enstad at sensewave.com> wrote in message
> news:8mnaep$qc4$1 at troll.powertech.no...
>
> > Everything works without any error messages but something seems to
> be wrong
> > in the registration of the Event handlers as they are never called.
>
> Python support for WSH does not include events, I'm afraid :-(  It
> should, but Python's native COM support has only recently grown
> support for events...
>
> Note that WSH is a little silly with Python - there is nothing WSH can
> do that Python can not - particularly as the WSH object model is
> available directly from Python without WSH at all!

I think (not completely sure, but...) that by using WSH to build
'scriptlets' you may manage to write out a type-library for COM
servers implemented in Python.  For users of Python 1.5.2, other
uses might include reading/writing text-files in Unicode (UTF-8
or UTF-16), as that release of Python didn't do too well in the
Unicode arena -- but that of course is changing drastically.

Marginal stuff, maybe, but not zero usefulness:-).


Alex






More information about the Python-list mailing list