[ python-Bugs-1266296 ] Mistakes in decimal.Context.subtract documentation

SourceForge.net noreply at sourceforge.net
Mon Feb 20 14:12:57 CET 2006


Bugs item #1266296, was opened at 2005-08-22 15:43
Message generated for change (Settings changed) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1266296&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.4
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Jim Sizelove (jsizelove)
>Assigned to: Georg Brandl (gbrandl)
Summary: Mistakes in decimal.Context.subtract documentation

Initial Comment:
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.

----------------------------------------------------------------------

Comment By: Georg Brandl (birkenfeld)
Date: 2005-08-22 19:36

Message:
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


----------------------------------------------------------------------

Comment By: George Yoshida (quiver)
Date: 2005-08-22 18:27

Message:
Logged In: YES 
user_id=671362

Same here ::
  ./Misc/cheatsheet:      x+y  x-y       addition, substraction

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1266296&group_id=5470


More information about the Python-bugs-list mailing list