Robert Roessler <[EMAIL PROTECTED]> wrote: > > Guenter Leib wrote: > > I'm currently working on a lexer for IEC 61134 PLC programming language and > > have a problem executing the sricpt LexGen.py. Beeing totally ingnorant > > about > > Python i don't konw where to look or what to do. > > The sricpt is terminated with the following message: > > > > Traceback (most recent call last): > > File "LexGen.py", line 241, in ? > > RegenerateAll() > > File "LexGen.py", line 203, in RegenerateAll > > lexerProperties = set() > > NameError: global name 'set' is not defined > > > > I'm using Python 2.3 on a suse 9.2 and scintilla V1.68 (same on V1.67). > > I am not a Python person, but what does your command line look like? > Which documentation were you following? Did you model your lexer and > properties file after one or more existing ones?
It seems likely to be a problem with the version of Python he was running. Python 2.3 does not have a set builtin type. On the other hand, Python 2.4 _does_ have a set builtin type... Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> set() Traceback (most recent call last): File "<stdin>", line 1, in ? NameError: name 'set' is not defined >>> Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> set() set([]) >>> - Josiah _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
