This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Mistakes in decimal.Context.subtract documentation
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, georg.brandl, jsizelove, quiver
Priority: normal Keywords:

Created on 2005-08-22 15:43 by jsizelove, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg26100 - (view) Author: Jim Sizelove (jsizelove) Date: 2005-08-22 15:43
The subtract method of the decimal.Context object is
misspelled as
    substract
in the online html documentation for the decimal
module, section 5.6.3.


At the Python interactive prompt:
>>> import decimal
>>> help(decimal.Context.subtract)
Help on method subtract in module decimal:

subtract(self, a, b) unbound decimal.Context method
    Return the sum of the two operands.
    <snip doctest examples>

That description should read:
    Returns the difference between a and b.
msg26101 - (view) Author: George Yoshida (quiver) (Python committer) Date: 2005-08-22 18:27
Logged In: YES 
user_id=671362

Same here ::
  ./Misc/cheatsheet:      x+y  x-y       addition, substraction
msg26102 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-08-22 19:36
Logged In: YES 
user_id=1188172

Thank you for the report; fixed in 2.5 and 2.4 branches as

Doc/lib/libdecimal.tex; 1.29; 1.24.2.4
Lib/decimal.py; 1.39; 1.31.2.5
Misc/cheatsheet; 1.11; 1.10.2.1
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42296
2005-08-22 15:43:25jsizelovecreate