cpython/Modules
Guido van Rossum f7e6b4b388 Pretty much rewritten to fulfull several long-standing wishes:
-- 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 '>'.
1996-12-31 01:41:25 +00:00
..
_cursesmodule.c Keep gcc -Wall happy. 1996-12-05 23:43:35 +00:00
_tkinter.c Another fix for Split() -- don't refuse {"} but turn it into ". 1996-12-17 01:25:36 +00:00
_xdrmodule.c Updated to standard Python C coding style, and fixed a few error 1996-12-17 00:01:40 +00:00
almodule.c Keep gcc -Wall happy. 1996-12-05 23:43:35 +00:00
arraymodule.c Removed some unneeded header files and reedited with a fixed-width font 1996-12-09 22:24:19 +00:00
audioop.c Keep gcc -Wall happy. 1996-12-05 23:43:35 +00:00
binascii.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
bsddbmodule.c Fix bad format char in error msg (%s should be %d). 1996-12-05 23:30:16 +00:00
cdmodule.c Keep gcc -Wall happy. 1996-12-05 23:43:35 +00:00
cgen.py Added `void' to declaration of initgl(), to keep gcc -Wall happy. 1996-12-09 18:51:51 +00:00
cgensupport.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
cgensupport.h Added remaining declarations needed/used in glmodule.c; keeps gcc -Wall happy. 1996-12-10 15:41:19 +00:00
clmodule.c Keep gcc -Wall happy. 1996-12-05 23:43:35 +00:00
cmathmodule.c Removed redundant inclusion of <errno.h> (sorry, Roj!). 1996-12-10 00:12:14 +00:00
config.c.in New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
cryptmodule.c renamed grandly. 1996-12-09 23:14:26 +00:00
cStringIO.c Jim F's brainchild 1996-12-05 23:30:48 +00:00
cstubs Changes to keep gcc -Wall happy. 1996-12-09 18:52:11 +00:00
dbmmodule.c Opps, fixed a couple of newly introduced wrapping problems. 1996-12-13 15:59:22 +00:00
defmakexp_aix Latest AIX changes from Vlad 1996-08-08 19:06:31 +00:00
dlmodule.c Renamed. 1996-12-13 20:33:44 +00:00
errnomodule.c Removed a #inlclude <errno.h> since it's implied with "Python.h" 1996-12-13 23:29:09 +00:00
fcntlmodule.c Opps, left in a /*#include "modsupport.h"*/ 1996-12-17 17:46:28 +00:00
flmodule.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
fmmodule.c Keep gcc -Wall happy. 1996-12-05 23:43:35 +00:00
gdbmmodule.c Renamed in a grand-ee-ous way! 1996-12-17 19:55:33 +00:00
getpath.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
glmodule.c Renamed. 1996-12-24 19:39:23 +00:00
grpmodule.c Eradicated all references to getintarg and getstrarg and substituded the 1996-12-18 20:07:39 +00:00
imageop.c Renamed. 1996-12-20 20:50:39 +00:00
imgfile.c Renamed. 1996-12-20 21:56:08 +00:00
ld_so_aix Major upgrade by Vladimir Marangozov. 1996-10-21 15:10:39 +00:00
main.c Include unistd.h to keep gcc -Wall happy. 1996-12-09 18:46:58 +00:00
Makefile.pre.in Added Jeremy's resource module. 1996-12-18 18:37:27 +00:00
makesetup Support *shared* and *static* as aliases for *noconfig* and *config*. 1996-08-20 19:49:13 +00:00
makexp_aix Re-install aix files (what happened?) 1996-08-08 19:05:09 +00:00
mathmodule.c Removed references to getdoublearg and get2doublearg rename macros and 1996-12-18 21:59:01 +00:00
md5.h Use INT_MAX/LONG_MAX instead of non-ANSI LONG_BIT 1996-07-21 02:34:55 +00:00
md5c.c Always include config.h 1996-08-19 22:12:39 +00:00
md5module.c Renamed 1996-12-09 22:32:36 +00:00
mpzmodule.c Renamed a few symbols that were found in comments. 1996-12-09 23:22:35 +00:00
newmodule.c Renamed. 1996-12-10 16:25:56 +00:00
nismodule.c cat and puste errors 1996-12-11 01:00:46 +00:00
operator.c Tabification changes only; the module was already newly named. 1996-12-18 19:50:00 +00:00
parsermodule.c Keep gcc -Wall happy. 1996-12-05 23:43:35 +00:00
posixmodule.c 1. Export open(2) flag constants for every defined constant 1996-12-19 23:50:02 +00:00
pwdmodule.c Minor formatting changes. 1996-12-19 22:22:32 +00:00
python.exp Changed _Py_EllipsesObject -> _Py_EllipsisObject. 1996-10-21 15:11:12 +00:00
regexmodule.c Several changes. Test program to follow. 1996-12-20 21:56:07 +00:00
regexpr.c Keep gcc -Wall happy. 1996-12-05 23:43:35 +00:00
regexpr.h rename exported symbols with _Py_ prefix 1996-05-24 20:51:38 +00:00
resource.c Added Jeremy's resource module. 1996-12-18 18:37:27 +00:00
rgbimgmodule.c Grandly renamed. 1996-12-11 21:33:16 +00:00
rotormodule.c Reworked to check for memory problems (one potential found), 1996-12-23 23:36:24 +00:00
selectmodule.c list2set(): correct return value (an int, not a PyObject*). 1996-12-16 18:15:34 +00:00
Setup.in Added Jeremy's resource module. 1996-12-18 18:37:27 +00:00
sgimodule.c Great renaming. 1996-12-10 00:32:31 +00:00
signalmodule.c initsignal(): Added SIGXCPU and SIGXFSZ. Left in the definitions for 1996-12-16 20:24:22 +00:00
socketmodule.c Added the new getprotobyname() call to the module overview at the top. 1996-12-19 16:42:52 +00:00
soundex.c Add case for 'R' and a little bit of cleanup. Andrew Kuchling. 1996-12-05 23:41:26 +00:00
stdwinmodule.c Renamed, but *not* tested or compiled. I don't even have the STDWIN 1996-12-12 22:48:20 +00:00
stropmodule.c Greatly renamed. 1996-12-09 18:35:56 +00:00
structmodule.c Pretty much rewritten to fulfull several long-standing wishes: 1996-12-31 01:41:25 +00:00
sunaudiodev.c Renamed, however there is no test case. I did test some of the module 1996-12-13 00:11:04 +00:00
svmodule.c Corrected two errors introduced by the renaming (and the subsequent 1996-12-17 20:43:55 +00:00
syslogmodule.c Keep gcc -Wall happy. 1996-12-05 23:43:35 +00:00
termios.c Fix operator priority bug found thanks to gcc -Wall. 1996-12-10 15:23:00 +00:00
threadmodule.c Renamed. 1996-12-17 00:05:22 +00:00
timemodule.c Added #ifdef around ``extern int ftime();'' for MS WINDOWS (which has 1996-12-09 18:38:52 +00:00
timing.h remove rcs history 1996-01-26 21:10:22 +00:00
timingmodule.c removed rcs cruft 1995-06-14 22:23:17 +00:00
tkappinit.c Initial revision 1994-06-27 08:00:16 +00:00
xxmodule.c Added the example "thin ice" from the extensions manual. 1996-12-13 02:57:25 +00:00
yuv.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
yuvconvert.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00