<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/structmodule.c, branch v2.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=v2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/structmodule.c?h=v2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-10-24T20:42:55Z</updated>
<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>
<entry>
<title>Initial support for 'q' and 'Q' struct format codes:  for now, only in</title>
<updated>2001-06-10T23:40:19Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-06-10T23:40:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7b9542a3f747787aedf056ddaef99e4469777aa9'/>
<id>urn:sha1:7b9542a3f747787aedf056ddaef99e4469777aa9</id>
<content type='text'>
native mode, and only when config #defines HAVE_LONG_LONG.  Standard mode
will eventually treat them as 8-byte ints across all platforms, but that
likely requires a new set of routines in longobject.c first (while
sizeof(long) &gt;= 4 is guaranteed by C, there's nothing in C we can rely
on x-platform to hold 8 bytes of int, so we'll have to roll our own;
I'm thinking of a simple pair of conversion functions, Python long
to/from sized vector of unsigned bytes; that may be useful for GMP
conversions too; std q/Q would call them with size fixed at 8).

test_struct.py:  In addition to adding some native-mode 'q' and 'Q' tests,
got rid of unused code, and repaired a non-portable assumption about
native sizeof(short) (it isn't 2 on some Cray boxes).

libstruct.tex:  In addition to adding a bit of 'q'/'Q' docs (more needed
later), removed an erroneous footnote about 'I' behavior.
</content>
</entry>
<entry>
<title>Repair portability of sign extension when reading signed ints on boxes</title>
<updated>2001-04-08T23:39:38Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-04-08T23:39:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f0e717bdb1729ba93f8f2524962ee95ab1d7d425'/>
<id>urn:sha1:f0e717bdb1729ba93f8f2524962ee95ab1d7d425</id>
<content type='text'>
where sizeof(long)==8.  This *was* broken on boxes where signed right
shifts didn't sign-extend, but not elsewhere.  Unfortunately, apart
from the Cray T3E I don't know of such a box, and Guido has so far
refused to buy me any Cray machines for home Python testing &lt;wink&gt;.

More immediately interesting would be if someone could please test
this on *any* sizeof(long)==8 box, to make sure I didn't break it.
</content>
</entry>
</feed>
