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
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 i
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 mus
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 a
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: inva
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
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
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
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.p
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
[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
>
>
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
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'):
>
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 ch
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 desc
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 st
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 st
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
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
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?
--
http://mail.python.org
20 matches
Mail list logo