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
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
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
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
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
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
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
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
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'):
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
^
[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
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
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,
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
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
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.
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
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
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
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?
--
20 matches
Mail list logo