<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/xdrlib.py, branch v2.2.3</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/xdrlib.py?h=v2.2.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/xdrlib.py?h=v2.2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-08-16T17:06:44Z</updated>
<entry>
<title>Use (c)StringIO for collecting bytes. Fixes bug #451622.</title>
<updated>2001-08-16T17:06:44Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-08-16T17:06:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c47016ee74fdd765bdad0f890c810518501de22a'/>
<id>urn:sha1:c47016ee74fdd765bdad0f890c810518501de22a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be</title>
<updated>2001-03-01T04:27:19Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2001-03-01T04:27:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=40fc16059f04ee8fda0b5956cc4883eb21ca8f8c'/>
<id>urn:sha1:40fc16059f04ee8fda0b5956cc4883eb21ca8f8c</id>
<content type='text'>
giving it a slight facelift
</content>
</entry>
<entry>
<title>Whitespace normalization.  Top level of Lib now fixed-point for reindent.py!</title>
<updated>2001-01-15T03:34:38Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-15T03:34:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e119006e7dc0df0a5ff6b60764b2ce3cd9477688'/>
<id>urn:sha1:e119006e7dc0df0a5ff6b60764b2ce3cd9477688</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update the code to better reflect recommended style:</title>
<updated>2000-12-12T23:20:45Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2000-12-12T23:20:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8152d32375c40bba9ccbe43b780ebe96d9617781'/>
<id>urn:sha1:8152d32375c40bba9ccbe43b780ebe96d9617781</id>
<content type='text'>
Use != instead of &lt;&gt; since &lt;&gt; is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
</content>
</entry>
<entry>
<title>Mass check-in after untabifying all files that need it.</title>
<updated>1998-03-26T21:13:24Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-03-26T21:13:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=45e2fbc2e70ef28b1f0327207f33dab3a4e825c5'/>
<id>urn:sha1:45e2fbc2e70ef28b1f0327207f33dab3a4e825c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Packer.pack_uhyper(): Fixes needed to properly pack unsigned 64 bit</title>
<updated>1997-05-29T21:01:35Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>1997-05-29T21:01:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1d0fe31d7e4d3d7a756678e991c3284202877cda'/>
<id>urn:sha1:1d0fe31d7e4d3d7a756678e991c3284202877cda</id>
<content type='text'>
longs where the top bit is set.  First, change the masks so that they
are `L' longs, otherwise the sign bits will get propagated to the
result.  Next, do not coerce to int before sending to pack_uint()
otherwise Python will generate an OverflowError.  Here is a test
program that fails without the patch, but now succeeds:

import xdrlib

addr = (132, 151, 1, 71)
uint = 0L
for a in addr:
    uint = (uint &lt;&lt; 8) | a

ulong64 = uint &lt;&lt; 32

p = xdrlib.Packer()
p.pack_uhyper(ulong64)
buf = p.get_buffer()
u = xdrlib.Unpacker(buf)
ulong64prime = u.unpack_uhyper()

if ulong64 == ulong64prime:
    print 'okay'
else:
    print 'bogus'

print ulong64, ulong64prime
</content>
</entry>
<entry>
<title>Raise ConversionError instances the new fangled way, e.g.:</title>
<updated>1997-01-14T17:11:02Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>1997-01-14T17:11:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7e98bda43b60fc040b5662b53d73ebb18b589a85'/>
<id>urn:sha1:7e98bda43b60fc040b5662b53d73ebb18b589a85</id>
<content type='text'>
    raise ConversionError, msg

where `msg' is passed as the argument to the constructor.
</content>
</entry>
<entry>
<title>Use the new struct module's ability to pack and unpack standardized</title>
<updated>1997-01-02T22:52:15Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-01-02T22:52:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6083f0e9ce84de9f8b3aa0531a833b9de285438d'/>
<id>urn:sha1:6083f0e9ce84de9f8b3aa0531a833b9de285438d</id>
<content type='text'>
data formats.  The _xdr module is no longer used, since struct
supports the required IEEE floats and doubles.

(I have one doubt about not using _xdr.  The struct module doesn't
handle Inf, NaN and gradual underflow correctly.  If the _xdr module
does these things better, it may still have a (small) competitive
advantage.  On the other hand, since not all platforms support IEEE
floating point, it's not clear that it would be a good idea to ever
transfer Inf or NaNs.  Gradual underflow can be fixed in the struct
module.
</content>
</entry>
<entry>
<title>Unpacker.get_buffer(): new method to access the internal buffer of data</title>
<updated>1996-12-04T22:04:39Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>1996-12-04T22:04:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=75eccc5bcf7773921993a64a9d9e7122183e85ab'/>
<id>urn:sha1:75eccc5bcf7773921993a64a9d9e7122183e85ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Get rid of evil workaround for Python 1.4b2 bug.</title>
<updated>1996-10-22T18:59:47Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1996-10-22T18:59:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=176f10e3d5b686b4cc888cf722fb94c7ae189fab'/>
<id>urn:sha1:176f10e3d5b686b4cc888cf722fb94c7ae189fab</id>
<content type='text'>
</content>
</entry>
</feed>
