[issue12580] Documentation error in Decimal module

2011-07-17 Thread Steve Holden
Steve Holden added the comment: Sorry about that. I was using 3.1, as you will have gathered. -- status: open -> closed ___ Python tracker ___ __

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: The example is correct and runs as expected: >>> Decimal(3.14) Decimal('3.140124344978758017532527446746826171875') Per the Whatsnew3.2 document: ''' The decimal.Decimal constructor now accepts float objects directly so there in no longer a nee

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: georg.brandl -> rhettinger nosy: +rhettinger versions: +Python 3.3 -Python 3.1 ___ Python tracker ___

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Stefan Krah
Stefan Krah added the comment: Behavior for mixed operations varies greatly between Python versions. The first table over here lists the differences and should be valid for decimal.py: http://www.bytereef.org/mpdecimal/doc/cdecimal/index.html#floatoperation-signal As an extension, cdecimal h

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Steve Holden
Changes by Steve Holden : -- components: +Documentation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Steve Holden
New submission from Steve Holden : We see in the "Quick-Start Tutorial" (py3k section 8.4.1) the following example: >>> Decimal(3.14) Decimal('3.140124344978758017532527446746826171875') In actua; fact one would expect an exception from that code, which should perhaps instead read