RELEASED Python 2.4.1, release candidate 1

Tim N. van der Leeuw tim.leeuwvander at nl.unisys.com
Thu Mar 10 17:24:07 EST 2005


Hi,

I have a problem with Python2.4 and win32com extensions, from Mark
Hammond's win32all package... I posted a few days back about a crash
when compiling files generated by win32com's 'makepy.py' utility.

Now these generated files, which are fine in Python 2.3.5, give a
syntax error on compile.

I posted a somewhat longer message on the python-dev mailing list but
since I'm not subscribe the message is awaiting moderator approval, and
I wanted to notify you of this problem ASAP.

The specific syntax errors are:

  File
"D:\Python24\lib\site-packages\win32com\gen_py\00020813-0000-0000-C000-000000000046x0x1x3.py",
line 2591
    return ret
              ^
SyntaxError: invalid syntax

  File
"D:\Python24\lib\site-packages\win32com\gen_py\00020905-0000-0000-C000-000000000046x0x8x1.py",
line 3025
    "StyleName": (3, 2, (8, 0), (), "StyleName", None),
		"Value": (0, 2, (8, 0), (), "Value", None),
                                                       ^
SyntaxError: invalid syntax


Eyeballing the files around these locations, I cannot detect any syntax
errors. And as I mentioned above, the exact same file compiles just
fine under Python2.3.5.
(And crashes the 2.4.0 interpreter)

regards,

--Tim




More information about the Python-list mailing list