summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Changed the ``add/sub_offset'' hacks for dealing with C's unsignedGuido van Rossum1997-01-031-112/+14
| | | | | | | int/long types, and use the new PyLong_FromUnsignedLong() and PyLong_AsUnsignedLong() interfaces instead. Semantic change: the 'I' format will now always return a long int.
* Change the ``calcsize*3'' test to be portable to 64-bit machines.Guido van Rossum1997-01-031-3/+7
|
* Reindented.Roger E. Masse1997-01-031-516/+546
|
* Check of return values and proper error handling.Barry Warsaw1997-01-031-30/+60
|
* Added PyLong_FromUnsignedLong() and PyLong_AsUnsignedLong().Guido van Rossum1997-01-032-0/+58
|
* Output for signal module testBarry Warsaw1997-01-031-0/+2
|
* Add $(srcdir) in front of the test program's name (else it won't workGuido van Rossum1997-01-031-1/+1
| | | | when $(srcdir) isn't '.', i.e. when using VPATH).
* Fill pad bytes with zeros (fixing a bug dating from the very first version!).Guido van Rossum1997-01-031-2/+5
|
* Describe standard float/double support.Guido van Rossum1997-01-032-12/+20
| | | | Rewrite example to be an interactive session
* Scratch the ears of gcc -Wall.Barry Warsaw1997-01-031-1/+1
|
* Added declaration for PyErr_SetInterrupt.Barry Warsaw1997-01-031-1/+4
|
* Several changes:Barry Warsaw1997-01-031-105/+157
| | | | | | | | | | | | | | - Conform to standard Python C coding styles. - All static symbols were renamed and shorted. - Eyeballed all return values and memory references. - Fixed a bug in signal.pause() so that exceptions raised in signal handlers are now properly caught after pause() returns. - Removed SIGCPU and SIGFSZ. We surmise that these were typos for the previously missing SIGXCPU and SIGXFSZ.
* Added f/d tests for specific byte orders.Guido van Rossum1997-01-031-9/+19
|
* Ok, ok, I've fixed gradual underflow on packing too.Guido van Rossum1997-01-021-45/+47
| | | | | | Still don't know what to do with Inf/NaN, so I raise an exception on pack(), and something random decided by ldexp() will happen on unpack().
* Use the new struct module's ability to pack and unpack standardizedGuido van Rossum1997-01-021-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.
* Oops -- unpack float/double didn't do the right thing if e==0.Guido van Rossum1997-01-021-4/+14
|
* Support float and double in non-native formats.Guido van Rossum1997-01-021-2/+365
| | | | | These use the ANSI/IEEE standard, which is also used by XDR; so the _xdr module may become obsolete.
* rotorobj_setkey(): A single string argument is now required (i.e. noBarry Warsaw1997-01-021-5/+3
| | | | long optional with nearly-no-op missing).
* <rotorobj>.setkey() now requires exactly one argumentBarry Warsaw1997-01-021-1/+4
|
* Switched over to use the new testregr.py test harness.Barry Warsaw1997-01-021-2/+4
|
* setkey method's argument is no longer optional (it used to be a no-opBarry Warsaw1997-01-022-6/+4
| | | | when missing).
* Added characteristics of shttp, https, and snews.Guido van Rossum1997-01-021-3/+12
|
* Properly parenthesize a long Boolean combination. Formerly, you couldGuido van Rossum1997-01-021-1/+1
| | | | pass invalid seed values.
* The usual...Guido van Rossum1996-12-311-243/+178
|
* Rewritten the readline test, hopefully it's okay now.Guido van Rossum1996-12-311-31/+60
|
* (libformatter.tex): Document the flush() method on the writer.Fred Drake1996-12-312-0/+8
|
* (formatter.py): Add a flush() method to the writer interface. This reallyFred Drake1996-12-311-2/+2
| | | | | needs to be a standard part of the interface, so we'll have it in for the next release.
* Exercise the new feature set somewhat.Guido van Rossum1996-12-311-10/+73
| | | | Use TestFailed exception and verbose flag from test_support module.
* Added better handling of unsigned longs -- a Python long returned byGuido van Rossum1996-12-311-27/+163
| | | | unpack('L', ...) is now acceptable to pack('L', ...).
* Rewrote _{read,write}_{short,long} to use the newly revamped structGuido van Rossum1996-12-311-37/+44
| | | | | | module. (Small problem: struct.pack() won't deal with the Python long ints returned by struct.unpack() for the 'L' format. Worked around that for now.)
* Added libstat.texGuido van Rossum1996-12-313-1/+4
|
* Document the new extensions.Guido van Rossum1996-12-312-18/+128
|
* Fix the first bugs... treatment of 0 count was wrong, and memchr()Guido van Rossum1996-12-311-6/+6
| | | | should be memset().
* Pretty much rewritten to fulfull several long-standing wishes:Guido van Rossum1996-12-311-226/+572
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -- The whole implementation is now more table-driven. -- Unsigned integers. Format characters 'B', 'H', 'I' and 'L' mean unsigned byte, short, int and long. For 'I' and 'L', the return value is a Python long integer if a Python plain integer can't represent the required range (note: this is dependent on the size of the relevant C types only, not of the sign of the actual value). -- A new format character 's' packs/unpacks a string. When given a count prefix, this is the size of the string, not a repeat count like for the other format characters; e.g. '10s' means a single 10-byte string, while '10c' means 10 characters. For packing, the string is truncated or padded with null bytes as appropriate to make it fit. For unpacking, the resulting string always has exactly the specified number of bytes. As a special case, '0s' means a single, empty string (while '0c' means 0 characters). -- Various byte order options. The first character of the format string determines the byte order, size and alignment, as follows: First character Byte order size and alignment '@' native native '=' native standard '<' little-endian standard '>' big-endian standard '!' network (= big-endian) standard If the first character is not one of these, '@' is assumed. Native byte order is big-endian or little-endian, depending on the host system (e.g. Motorola and Sun are big-endian; Intel and DEC are little-endian). Native size and alignment are determined using the C compiler's sizeof expression. This is always combined with native byte order. Standard size and alignment are as follows: no alignment is required for any type (so you have to use pad bytes); short is 2 bytes; int and long are 4 bytes. In this mode, there is no support for float and double. Note the difference between '@' and '=': both use native byte order, but the size and alignment of the latter is standardized. The form '!' is available for those poor souls who can't remember whether network byte order is big-endian or little-endian. There is no way to indicate non-native byte order (i.e. force byte-swapping); use the appropriate choice of '<' or '>'.
* A different winning animation.Guido van Rossum1996-12-301-6/+8
|
* Rename DEBUG macro to Py_DEBUGGuido van Rossum1996-12-3011-23/+23
|
* Actually, *this* fixes the last bug.Guido van Rossum1996-12-301-2/+7
|
* Considerably restructured. This fixes the one remaining bug.Guido van Rossum1996-12-301-319/+322
|
* Solitaire game, like the one that comes with Windows.Guido van Rossum1996-12-291-0/+627
|
* Added support for RFC 850 style dates, as used by some HTTP serversGuido van Rossum1996-12-271-0/+4
| | | | | | | | (such as Netscape-Commerce and CERN). An example of a RFC 850 date: 'Wednesday, 18-Dec-96 21:00:00 GMT' From: Chris Lawrence <quango@themall.net>
* Fix bogus implementation of Group.bind().Guido van Rossum1996-12-272-4/+12
| | | | Added unbind() to CanvasItem and Group classes.
* Added config(ure) method to Image class.Guido van Rossum1996-12-272-0/+20
| | | | (Fred Drake)
* Change the default values for IntVar and DoubleVar to numbers (theyGuido van Rossum1996-12-272-4/+4
| | | | were strings, accidentally).
* Crude but effective hack to clear the parser cache every so often.Guido van Rossum1996-12-271-0/+4
| | | | (Fred Drake.)
* Removed all traces of accessobject.c.Guido van Rossum1996-12-252-374/+2
|
* Renamed.Roger E. Masse1996-12-241-0/+8530
| | | | | However: "cgensupport.h" is still present... otherwise I get maaaany type errors... not sure if this needs more attention.
* Test output for the gl C extension module.Roger E. Masse1996-12-241-0/+1
|
* gl is a *huge* module. This is a very simple test that insures thatRoger E. Masse1996-12-241-0/+141
| | | | | | all the modules attributes are present and creates a small criss-cross window for 5 seconds (example from the documentation :-) A more comprehensive test would probably be useful... but maybe overkill.
* Output filesBarry Warsaw1996-12-236-0/+60
| | | | | | | | | test_rotor.py: New test of the rotor module. test_*: converted to the new test harness. GvR note! test_signal.py works interatively (i.e. when verbose=1) but does not work inside the test harness. It must be a timing issue, but I haven't figured it out yet.
* test_rotor.py: New test of the rotor module.Barry Warsaw1996-12-238-27/+89
| | | | | | | test_*: converted to the new test harness. GvR note! test_signal.py works interatively (i.e. when verbose=1) but does not work inside the test harness. It must be a timing issue, but I haven't figured it out yet.