<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/structmodule.c, branch 2.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/structmodule.c?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/structmodule.c?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-03-20T18:31:20Z</updated>
<entry>
<title>SF bug 705836: struct.pack of floats in non-native endian order</title>
<updated>2003-03-20T18:31:20Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-03-20T18:31:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=58d23ae9a919520ee5b849a4c6c48fa833c9958d'/>
<id>urn:sha1:58d23ae9a919520ee5b849a4c6c48fa833c9958d</id>
<content type='text'>
pack_float, pack_double, save_float:  All the routines for creating
IEEE-format packed representations of floats and doubles simply ignored
that rounding can (in rare cases) propagate out of a long string of
1 bits.  At worst, the end-off carry can (by mistake) interfere with
the exponent value, and then unpacking yields a result wrong by a factor
of 2.  In less severe cases, it can end up losing more low-order bits
than intended, or fail to catch overflow *caused* by rounding.
</content>
</entry>
<entry>
<title>Backport 2.57 from trunk:</title>
<updated>2002-09-23T20:54:04Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-09-23T20:54:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d41f84fc92a0c2f7a8be4ffa174730f4ecb40b7a'/>
<id>urn:sha1:d41f84fc92a0c2f7a8be4ffa174730f4ecb40b7a</id>
<content type='text'>
(Most of) SF patch 601369 (Christos Georgiou): obmalloc,structmodule:
64bit, big endian (issue 2 only).

This adds a bunch of memcpy calls via a temporary variable to avoid
alignment errors.  That's needed for some platforms.
</content>
</entry>
<entry>
<title>SF patch #474590 -- RISC OS support</title>
<updated>2001-10-24T20:42:55Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-24T20:42:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e2ae77b8b8a62e648bb1864a9b36ef3280984404'/>
<id>urn:sha1:e2ae77b8b8a62e648bb1864a9b36ef3280984404</id>
<content type='text'>
</content>
</entry>
<entry>
<title>The 'p' (Pascal string) pack code acts unreasonably when the string size</title>
<updated>2001-09-15T02:35:15Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-15T02:35:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0891ac017dd02f9c592c40940dff6b050523be00'/>
<id>urn:sha1:0891ac017dd02f9c592c40940dff6b050523be00</id>
<content type='text'>
and count exceed 255.  Changed to preserve as much of the string as
possible (instead of count%256 characters).
</content>
</entry>
<entry>
<title>SF bug #442520: test_struct fails on SPARC.</title>
<updated>2001-07-18T20:47:31Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-07-18T20:47:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3dac559299100c135fded9bb22536dbb1379a9bc'/>
<id>urn:sha1:3dac559299100c135fded9bb22536dbb1379a9bc</id>
<content type='text'>
The ob_sval member of a string object isn't necessarily aligned to better
than a native long, so the new "q" and "Q" struct codes can't get away w/
casting tricks on platforms where LONG_LONG requires stricter-than-long
alignment.  After I thought of a few elaborate workarounds, Guido bashed
me over the head with the obvious memcpy approach, herewith implemented.
</content>
</entry>
<entry>
<title>The new {b,l}p_{u,}longlong() didn't check get_pylong()'s return for NULL.</title>
<updated>2001-06-13T01:26:35Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-06-13T01:26:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=da9c5b35a3ee5fc5bc1d1c64e04bfa8c5bf35886'/>
<id>urn:sha1:da9c5b35a3ee5fc5bc1d1c64e04bfa8c5bf35886</id>
<content type='text'>
Repaired that, and added appropriate tests for it to test_struct.py.
</content>
</entry>
<entry>
<title>Added q/Q standard (x-platform 8-byte ints) mode in struct module.</title>
<updated>2001-06-12T01:22:22Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-06-12T01:22:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7a3bfc3a472dafc42d20845389eb79db8af0b046'/>
<id>urn:sha1:7a3bfc3a472dafc42d20845389eb79db8af0b046</id>
<content type='text'>
This completes the q/Q project.

longobject.c _PyLong_AsByteArray:  The original code had a gross bug:
the most-significant Python digit doesn't necessarily have SHIFT
significant bits, and you really need to count how many copies of the sign
bit it has else spurious overflow errors result.

test_struct.py:  This now does exhaustive std q/Q testing at, and on both
sides of, all relevant power-of-2 boundaries, both positive and negative.

NEWS:  Added brief dict news while I was at it.
</content>
</entry>
<entry>
<title>Trimmed trailing whitespace.</title>
<updated>2001-06-11T16:57:33Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-06-11T16:57:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2d4e077f234023ba2fbece561a3cde91bfed1ea1'/>
<id>urn:sha1:2d4e077f234023ba2fbece561a3cde91bfed1ea1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify some convolution by simply not recognizing 'q' and 'Q' at all</title>
<updated>2001-06-11T16:51:56Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-06-11T16:51:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3023f78819a9b03a5fda357cd19abad997339117'/>
<id>urn:sha1:3023f78819a9b03a5fda357cd19abad997339117</id>
<content type='text'>
in native mode on platforms that don't HAVE_LONG_LONG.
</content>
</entry>
<entry>
<title>Make clear in the docstring that "std" applies to both size and alignment,</title>
<updated>2001-06-11T16:45:33Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-06-11T16:45:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=be80085514933ca02432d75e47f7eaf436e826ac'/>
<id>urn:sha1:be80085514933ca02432d75e47f7eaf436e826ac</id>
<content type='text'>
not just to alignment.  Spotted by Guido.

Bugfix candidate.
</content>
</entry>
</feed>
