[issue5393] cmath.cos and cmath.cosh have "nResult" typo in help

Michael Newman report at bugs.python.org
Sat Feb 28 16:29:52 CET 2009


New submission from Michael Newman <michael.b.newman at gmail.com>:

cmath.cos and cmath.cosh have "nResult" typo in their help text.

"""
Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cmath
>>> help(cmath.cos)
Help on built-in function cos in module cmath:

cos(...)
    cos(x)
    nReturn the cosine of x.

>>> help(cmath.cosh)
Help on built-in function cosh in module cmath:

cosh(...)
    cosh(x)
    nReturn the hyperbolic cosine of x.
"""

Likewise in Py26, Py25, and Py24...

"""
Python 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cmath
>>> help(cmath.cos)
Help on built-in function cos in module cmath:

cos(...)
    cos(x)
    nReturn the cosine of x.

>>> help(cmath.cosh)
Help on built-in function cosh in module cmath:

cosh(...)
    cosh(x)
    nReturn the hyperbolic cosine of x.
"""

"""
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cmath
>>> help(cmath.cos)
Help on built-in function cos in module cmath:

cos(...)
    cos(x)
    nReturn the cosine of x.

>>> help(cmath.cosh)
Help on built-in function cosh in module cmath:

cosh(...)
    cosh(x)
    nReturn the hyperbolic cosine of x.
"""

"""
Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cmath
>>> help(cmath.cos)
Help on built-in function cos in module cmath:

cos(...)
    cos(x)
    nReturn the cosine of x.

>>> help(cmath.cosh)
Help on built-in function cosh in module cmath:

cosh(...)
    cosh(x)
    nReturn the hyperbolic cosine of x.
"""

----------
assignee: georg.brandl
components: Documentation
messages: 82915
nosy: georg.brandl, mnewman
severity: normal
status: open
title: cmath.cos and cmath.cosh have "nResult" typo in help
versions: Python 2.4, Python 2.5, Python 2.6, Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5393>
_______________________________________


More information about the Python-bugs-list mailing list