Re: [Pyparsing] (no subject)
Brought to you by:
ptmcg
From: Ralph C. <ra...@in...> - 2012-03-25 12:13:38
|
Hi Mario, > I'm new to python Welcome! > I'm having trouble with the definition of 'grant' at line 100 (the > error message is shown at the end of the paste). I haven't run the code but at first glance I see nothing wrong with your PyParsing for that bit. However, for test in tests.splitlines(): if test.strip() != '': linea = syntax.parseString(test) are you aware that foo.strip() returns a stripped foo but doesn't modify foo? IOW, foo = foo.strip() is common to see? You're passing an unstripped `test' to parseString() above which may not be what you want. Cheers, Ralph. |