[Patches] [ python-Patches-1181301 ] make float packing copy bytes
when they can
SourceForge.net
noreply at sourceforge.net
Tue Apr 19 18:06:39 CEST 2005
Patches item #1181301, was opened at 2005-04-12 08:37
Message generated for change (Comment added) made by mwh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1181301&group_id=5470
Category: Core (C code)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Hudson (mwh)
Assigned to: Nobody/Anonymous (nobody)
Summary: make float packing copy bytes when they can
Initial Comment:
As discussed on python-dev, this makes the
_PyFloat_{Pack,Unpack}{4,8} functions copy bytes around when
peering at 1.5 has the right result.
----------------------------------------------------------------------
>Comment By: Michael Hudson (mwh)
Date: 2005-04-19 17:06
Message:
Logged In: YES
user_id=6656
Stop me if this is getting silly.
This adds class methods __getformat__ and __setformat__ to the float
type and uses them in a new test file, test_float (they have docstrings that
warn people not to use them).
I'd like to check this in soon. Any objections?
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2005-04-14 08:51
Message:
Logged In: YES
user_id=6656
This version attacks comments some more, uses more interesting probe
values and, um, actually works on a little-endian platform (previous
versions had a very stupid bug).
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2005-04-12 18:18
Message:
Logged In: YES
user_id=6656
New patch, which attacks comments in floatobject.h and implements Tim's
idea of refusing to unpack an IEEE special on a non-IEEE platform.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1181301&group_id=5470
More information about the Patches
mailing list