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.

Author benjamin.peterson
Recipients amaury.forgeotdarc, benjamin.peterson, pitrou
Date 2008-07-29.13:32:11
SpamBayes Score 0.006977538
Marked as misclassified No
Message-id <1afaf6160807290632o58bf4efcx636da8acf3d7384d@mail.gmail.com>
In-reply-to <1217338217.45.0.494421902789.issue3462@psf.upfronthosting.co.za>
Content
On Tue, Jul 29, 2008 at 8:30 AM, Amaury Forgeot d'Arc
<report@bugs.python.org> wrote:
>
> Amaury Forgeot d'Arc <amauryfa@gmail.com> added the comment:
>
> Bingo! doctest sets the __builtins__._ variable,
> and the last doctest in decimal.py (in lexicographic order) is
> Decimal.__round__, which ends with
>        >>> round(Decimal('sNaN123'), 0)
>        Decimal('NaN123')
> This is the value you see in Benjamin's output.
>
> Here is a trivial patch:

Shouldn't this be fixed in test_decimal so it cleans properly after it's self?
History
Date User Action Args
2008-07-29 13:32:12benjamin.petersonsetrecipients: + benjamin.peterson, amaury.forgeotdarc, pitrou
2008-07-29 13:32:11benjamin.petersonlinkissue3462 messages
2008-07-29 13:32:11benjamin.petersoncreate