[pypy-dev]
[issue19] Complex math functions need to be able to take real arguments.
Rocco Moretti
pypy-issues at codespeak.net
Sat Apr 19 02:15:01 MEST 2003
New submission from Rocco Moretti <roccomoretti at netscape.net>:
In revision 367, test_cmathmodule.py gives the following
results:
C:\PYTHON22\lib\pypy\appspace\test\test_cmathmodule.py
============================================================
Compare many functions with CPython. ... ok
Compare log/log10 functions with CPython. ... ERROR
======================================================================
ERROR: Compare log/log10 functions with CPython.
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\PYTHON22\lib\pypy\appspace\test\test_cmathmodule.py",
line 61, in test_log_log10
op1 = cmathmodule.__dict__[op](z0p)
File "C:\PYTHON22\lib\pypy\appspace\cmathmodule.py", line
134, in log10
imag = math.atan2(x.imag, x.real)/log(10.)
File "C:\PYTHON22\lib\pypy\appspace\cmathmodule.py", line
122, in log
l = math.hypot(x.real,x.imag)
AttributeError: 'float' object has no attribute 'real'
----------------------------------------------------------------------
Ran 2 tests in 57.070s
FAILED (errors=1)
----------
messages: 38
nosy: rocco
priority: bug
status: unread
title: Complex math functions need to be able to take real arguments.
__________________________________________________
PyPython issue tracker <pypy-issues at codespeak.net>
http://codespeak.net/issues/pypy/issue19
__________________________________________________
More information about the pypy-dev
mailing list