A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-March/052075.html below:

[Python-Dev] Python2.4.1c1 and win32com

[Python-Dev] Python2.4.1c1 and win32comLeeuw van der, Tim tim.leeuwvander at nl.unisys.com
Thu Mar 10 22:19:52 CET 2005
Hi,

Win32com generates Python-files for use with com interfaces, using the make-py.py utility.

The generated files are OK with Python2.3.5

The generated files crash the Python interpreter with Python 2.4

Under Python 2.4.1c1, They give a syntax error!?

The files unfortunately are very big, nearly 2Mb each, although they compress very well (270Kb).

The errors given are for one 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
(The marker is in the middle of 'None')

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


At least the interpreter no longer crashes, but I'm very surprised that this gives syntax errors when the exact same files do compile with Python 2.3.5 (To be sure, I generated the files using Python2.3.5, then copied them to the 2.4.1c1 installation, and then tried to have them compiled.)

Eyeballing the files, I can definately not see any syntax errors.


Anyone who can help or offer any suggestions?

Please CC me on any replies b/c I'm not subscribed to the list.

regards,

--Tim


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4