non descriptive error

Robert Kern robert.kern at gmail.com
Mon Oct 10 01:05:34 EDT 2005


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 anyone gets that terse message they know where to start 
> looking :)

[~]$ cat foo.py
from decimal import Decimal
a = Decimal('0'

[~]$ python2.3 foo.py
  File "foo.py", line 4

    ^
SyntaxError: invalid syntax

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter




More information about the Python-list mailing list