Re: non descriptive error

2005-10-12 Thread Ron Adam
Steven D'Aprano wrote: Timothy Smith wrote: i have NO idea what in there could be making it have such a strange error. it just says error when you try run it. there nothing terribly strange being done. i am still coming across this error it's driving me nuts. usually i can find what's

Re: non descriptive error

2005-10-11 Thread Timothy Smith
Fredrik Lundh wrote: Timothy Smith wrote: i have reproduced the error in this code block #save values in edit self.FinaliseTill.SaveEditControlValue() if Decimal(self.parent.TillDetails[self.TillSelection.GetStringSelection()]['ChangeTinBalance'])) == Decimal('0'): #box must be checked

Re: non descriptive error

2005-10-11 Thread Steven D'Aprano
Timothy Smith wrote: i have NO idea what in there could be making it have such a strange error. it just says error when you try run it. there nothing terribly strange being done. i am still coming across this error it's driving me nuts. usually i can find what's wrong, but it is becoming

Re: non descriptive error

2005-10-10 Thread Fredrik Lundh
Timothy Smith wrote: i have reproduced the error in this code block #save values in edit self.FinaliseTill.SaveEditControlValue() if Decimal(self.parent.TillDetails[self.TillSelection.GetStringSelection()]['ChangeTinBalance'])) == Decimal('0'): #box must be checked before continuing if

Re: non descriptive error

2005-10-10 Thread Fredrik Lundh
Timothy Smith wrote: 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 $ python script.py File script.py, line 3 ^ SyntaxError: invalid syntax

Re: non descriptive error

2005-10-10 Thread Terry Hancock
On Sunday 09 October 2005 06:12 pm, Timothy Smith wrote: Terry Hancock wrote: By looking at the source code for DutyShift.py? well DUH thank you captain obvious! Well, since you apparently missed the subtlety, you DID NOT GIVE ADEQUATE INFORMATION if you expected to get some kind of

Re: non descriptive error

2005-10-09 Thread Timothy Smith
Terry Hancock wrote: On Thursday 06 October 2005 11:57 pm, Timothy Smith wrote: i try to run my app and i get this %python DutyShift.py error thats it. thats the error. mya pp was previously working, and i did make some fairly large changes to it, but i'd expect a more descriptive message

Re: non descriptive error

2005-10-09 Thread Timothy Smith
i have reproduced the error in this code block #save values in edit self.FinaliseTill.SaveEditControlValue() if Decimal(self.parent.TillDetails[self.TillSelection.GetStringSelection()]['ChangeTinBalance'])) == Decimal('0'): #box must be

Re: non descriptive error

2005-10-09 Thread Timothy Smith
Timothy Smith wrote: i have reproduced the error in this code block #save values in edit self.FinaliseTill.SaveEditControlValue() if Decimal(self.parent.TillDetails[self.TillSelection.GetStringSelection()]['ChangeTinBalance'])) == Decimal('0'):

Re: non descriptive error

2005-10-09 Thread jepler
On Mon, Oct 10, 2005 at 09:12:13AM +1000, Timothy Smith wrote: FAYI i have already found it and it was a wrongly indented code block :/ When indentation leaves an illegal program structure, Python gives a very informative error message, such as File /tmp/x.py, line 3 return 3 ^

Re: non descriptive error

2005-10-09 Thread Timothy Smith
[EMAIL PROTECTED] wrote: On Mon, Oct 10, 2005 at 09:12:13AM +1000, Timothy Smith wrote: FAYI i have already found it and it was a wrongly indented code block :/ When indentation leaves an illegal program structure, Python gives a very informative error message, such as File

Re: non descriptive error

2005-10-09 Thread Neil Hodgson
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

Re: non descriptive error

2005-10-09 Thread Timothy Smith
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,

Re: non descriptive error

2005-10-09 Thread Ron Adam
Timothy Smith wrote: i have reproduced the error in this code block #save values in edit self.FinaliseTill.SaveEditControlValue() if Decimal(self.parent.TillDetails[self.TillSelection.GetStringSelection()]['ChangeTinBalance'])) == Decimal('0'): #box must be

Re: non descriptive error

2005-10-09 Thread Robert Kern
Timothy Smith wrote: 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

Re: non descriptive error

2005-10-07 Thread Terry Hancock
On Thursday 06 October 2005 11:57 pm, Timothy Smith wrote: i try to run my app and i get this %python DutyShift.py error thats it. thats the error. mya pp was previously working, and i did make some fairly large changes to it, but i'd expect a more descriptive message then just error.

Re: non descriptive error

2005-10-07 Thread [EMAIL PROTECTED]
You should tell us more about DutyShift.py, without the code it is very difficult for other people to guess what's going on. -- http://mail.python.org/mailman/listinfo/python-list

Re: non descriptive error

2005-10-07 Thread Steve Holden
Timothy Smith wrote: i try to run my app and i get this %python DutyShift.py error thats it. thats the error. mya pp was previously working, and i did make some fairly large changes to it, but i'd expect a more descriptive message then just error. anyidea where i need to start

Re: non descriptive error

2005-10-07 Thread Tomasz Lisowski
Timothy Smith wrote: i try to run my app and i get this %python DutyShift.py error thats it. thats the error. mya pp was previously working, and i did make some fairly large changes to it, but i'd expect a more descriptive message then just error. anyidea where i need to start

non descriptive error

2005-10-06 Thread Timothy Smith
i try to run my app and i get this %python DutyShift.py error thats it. thats the error. mya pp was previously working, and i did make some fairly large changes to it, but i'd expect a more descriptive message then just error. anyidea where i need to start looking? --