[Pyrex] Buglet: incorrect information in NameError exception value
Parzival Herzog
parzp at shaw.ca
Sat Oct 16 17:57:37 CEST 2004
>>> b.calc(p.julday(2004,10,15,0))
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "pysweph.pyx", line 181, in pysweph.body.calc
if self.iflag & se.SEFLG_SIDERIAL:
NameError: se
The NameError is actually that se.SEFLG_SIDERIAL is undefined, not that se is
undefined. In this case "se" is a renamed cimport. So the exception would
more accurately read
NameError: SEFLG_SIDERIAL
--
Parzival Herzog
More information about the Pyrex
mailing list