win32com events bug fixed.

Alex Martelli aleaxit at yahoo.com
Wed Oct 11 04:02:13 EDT 2000


"Mark Hammond" <MarkH at ActiveState.com> wrote in message
news:_2NE5.15444$aD2.65347 at news-server.bigpond.net.au...
    [snip]
> Obviously, this will not be necessary in any versions of win32all or
> ActivePython subsequently released.  (Has anyone tried 134 with 2.0c1?
> ;-)

I'm trying, but with some problems -- I don't think they're related
to the fix in the events-bug, but rather to 134/2.0c1 coexistence or
to some installation error on my part.

Specifically, for example, the following VBScript file dic.vbs:

WScript.Echo "doing the example"
set ob = CreateObject("Python.Dictionary")
WScript.Echo "object created"
ob("hello") = "there"
WScript.Echo "lowercase key set"
ob.Item("hi") = ob("HELLO")
WScript.Echo "uppercase key read"
WScript.Echo "Result:" & ob.Item("hi")
Wscript.Echo "example done"

when run under WSH, fails as follows:

D:\Python20>cscript dic.vbs
Microsoft (R) Windows Script Host Version 5.1 for Windows
Copyright (C) Microsoft Corporation 1996-1999. All rights reserved.

doing the example
object created
Fatal Python error: PyThreadState_Get: no current thread

D:\Python20>


I suspect it's something very silly I've done or failed to
do, but can't quite think what...


Alex






More information about the Python-list mailing list