Neil Hodgson wrote: >Timothy Smith: > > > >>FYI i have located where the problem was. in the first if statement >>there was an unbalanced ). now since when does python not give a >>descriptive error for that? >> >> > >I see this with the arrow pointing at the extra ')': > > >pythonw -u "xx.py" > File "xx.py", line 3 > if >Decimal(self.parent.TillDetails[self.TillSelection.GetStringSelection()]['ChangeTinBalance'])) > >== Decimal('0'): > > ^ >SyntaxError: invalid syntax > > Neil > > it is definately a bug in 2.3 when using the decimal module. i can reproduce it.
from decimal import Decimal a = Decimal('0' and when you attempt to run it you will get "error" of course i do understand that decimal wasn't part of 2.3, but atleast now when if anyone gets that terse message they know where to start looking :) -- http://mail.python.org/mailman/listinfo/python-list