Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | patch [ 1300515 ] xdrlib.py: pack_fstring() did not use null bytes for padding | Georg Brandl | 2005-09-29 | 1 | -1/+1 |
| | |||||
* | Patch #1049151: adding bool support to xdrlib.py. | Martin v. Löwis | 2005-02-24 | 1 | -5/+7 |
| | | | | Also add xdrlib._test into the test suite. | ||||
* | Replace backticks with repr() or "%r" | Walter Dörwald | 2004-02-12 | 1 | -1/+1 |
| | | | | From SF patch #852334. | ||||
* | Get rid of many apply() calls. | Guido van Rossum | 2003-02-27 | 1 | -2/+2 |
| | |||||
* | Derive exception classes from Exception | Neal Norwitz | 2002-03-31 | 1 | -1/+1 |
| | |||||
* | Use (c)StringIO for collecting bytes. Fixes bug #451622. | Martin v. Löwis | 2001-08-16 | 1 | -8/+12 |
| | |||||
* | final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be | Skip Montanaro | 2001-03-01 | 1 | -0/+2 |
| | | | | giving it a slight facelift | ||||
* | Whitespace normalization. Top level of Lib now fixed-point for reindent.py! | Tim Peters | 2001-01-15 | 1 | -4/+4 |
| | |||||
* | Update the code to better reflect recommended style: | Fred Drake | 2000-12-12 | 1 | -2/+2 |
| | | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects. | ||||
* | Mass check-in after untabifying all files that need it. | Guido van Rossum | 1998-03-26 | 1 | -144/+144 |
| | |||||
* | Packer.pack_uhyper(): Fixes needed to properly pack unsigned 64 bit | Barry Warsaw | 1997-05-29 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 << 8) | a ulong64 = uint << 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 | ||||
* | Raise ConversionError instances the new fangled way, e.g.: | Barry Warsaw | 1997-01-14 | 1 | -3/+4 |
| | | | | | | raise ConversionError, msg where `msg' is passed as the argument to the constructor. | ||||
* | Use the new struct module's ability to pack and unpack standardized | Guido van Rossum | 1997-01-02 | 1 | -77/+32 |
| | | | | | | | | | | | | | 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. | ||||
* | Unpacker.get_buffer(): new method to access the internal buffer of data | Barry Warsaw | 1996-12-04 | 1 | -0/+3 |
| | |||||
* | Get rid of evil workaround for Python 1.4b2 bug. | Guido van Rossum | 1996-10-22 | 1 | -4/+0 |
| | |||||
* | No double underscores for globals please | Guido van Rossum | 1996-08-26 | 1 | -3/+3 |
| | |||||
* | Rename __test() to _test(). | Guido van Rossum | 1996-08-19 | 1 | -2/+2 |
| | |||||
* | XDR interface, evolved from Demo/rpc/xdr.py by Barry. | Guido van Rossum | 1996-08-19 | 1 | -0/+324 |