New submission from Steve Holden <st...@holdenweb.com>: We see in the "Quick-Start Tutorial" (py3k section 8.4.1) the following example:
>>> Decimal(3.14) Decimal('3.140000000000000124344978758017532527446746826171875') In actua; fact one would expect an exception from that code, which should perhaps instead read >>> Decimal.from_float(3.14) Decimal('3.140000000000000124344978758017532527446746826171875') This class method is the recommended way to convert floats to decimal when necessary. ---------- assignee: georg.brandl messages: 140531 nosy: georg.brandl, holdenweb priority: normal severity: normal status: open title: Documentation error in Decimal module versions: Python 3.1, Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12580> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com