[Patches] [ python-Patches-1181301 ] make float packing copy bytes when they can
SourceForge.net
noreply at sourceforge.net
Fri May 27 17:27:40 CEST 2005
Patches item #1181301, was opened at 2005-04-12 08:37
Message generated for change (Settings changed) made by mwh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1181301&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 2.5
Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Michael Hudson (mwh)
>Assigned to: Michael Hudson (mwh)
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-05-27 16:24
Message:
Logged In: YES
user_id=6656
Checked in as:
Lib/test/test_float.py revision 1.1
Include/floatobject.h revision 2.23
Include/pythonrun.h revision 2.66
Objects/floatobject.c revision 2.136
Python/pythonrun.c revision 2.214
----------------------------------------------------------------------
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