<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/structmodule.c, branch v2.2a3</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.2a3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/structmodule.c?h=v2.2a3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-07-18T20:47:31Z</updated>
<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>
<entry>
<title>Rationalize use of limits.h, moving the inclusion to Python.h.</title>
<updated>2000-09-26T05:46:01Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2000-09-26T05:46:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d5fadf75e4d18df61db41205ace0cda28d98eeaa'/>
<id>urn:sha1:d5fadf75e4d18df61db41205ace0cda28d98eeaa</id>
<content type='text'>
Add definitions of INT_MAX and LONG_MAX to pyport.h.
Remove includes of limits.h and conditional definitions of INT_MAX
and LONG_MAX elsewhere.

This closes SourceForge patch #101659 and bug #115323.
</content>
</entry>
<entry>
<title>Use symbolic constants for allowable short ranges.</title>
<updated>2000-09-15T08:10:33Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2000-09-15T08:10:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2af72d5d6d25949bcdeb03dd38d9f8753f33d6b5'/>
<id>urn:sha1:2af72d5d6d25949bcdeb03dd38d9f8753f33d6b5</id>
<content type='text'>
</content>
</entry>
</feed>
