[Patches] [ python-Patches-1043218 ] Decimal.py enhancements

SourceForge.net noreply at sourceforge.net
Fri Oct 8 19:50:59 CEST 2004


Patches item #1043218, was opened at 2004-10-08 14:49
Message generated for change (Comment added) made by facundobatista
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: Open
Resolution: None
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: Facundo Batista (facundobatista)
Date: 2004-10-08 14: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