[Patches] [ python-Patches-1043218 ] Decimal.py enhancements
SourceForge.net
noreply at sourceforge.net
Sat Oct 9 09:11:31 CEST 2004
Patches item #1043218, was opened at 2004-10-08 12:49
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1043218&group_id=5470
Category: Library (Lib)
Group: Python 2.4
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Facundo Batista (facundobatista)
Assigned to: Raymond Hettinger (rhettinger)
Summary: Decimal.py enhancements
Initial Comment:
Raymond:
Changed the _fix and _fixexponents semantics according
to how they were used by the module, which simplifies
several things (less checks to see if "something" is
None, skipped the check for _is_special at the start of
_fixexponents, etc...).
Also skipped copying ``self`` in _fix() before calling
_fixexponents() (which already makes a copy of it). And
made some style fixups.
The tests passed ok, showing a 4% speedup.
I'm posting this like a patch and not doing a direct
commit to you to check if another change to the code
(with this speedup) is valuable.
. Facundo
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2004-10-09 02:11
Message:
Logged In: YES
user_id=80475
Accepted and applied with minor modifications:
Lib/decimal.py 1.26
----------------------------------------------------------------------
Comment By: Facundo Batista (facundobatista)
Date: 2004-10-08 12:50
Message:
Logged In: YES
user_id=752496
Posting the diff file.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1043218&group_id=5470
More information about the Patches
mailing list