cpython/Modules
Jeremy Hylton d10552379d Two fixes to find_class:
1. Only DECREF the class's module when the module is retrieved via
PyImport_Import.  If it is retrieved from the modules dictionary with
PyDict_GetItem, it is using a borrowed reference.

2. If the module doesn't define the desired class, raise the same
SystemError that pickle.py does instead of returning an AttributeError
(which is cryptic at best).

Also, fix the PyArg_ParseTuple in cpm_loads (the externally visible
loads) function:  Use "S" instead of "O" because cStringIO will croak
with a "bad arguments to internal function" if passed anything other
than a string.
1998-08-11 19:52:51 +00:00
..
Makefile.pre.in Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:53:56 +00:00
Setup.in Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:53:56 +00:00
Setup.thread.in Moved the thread module to its own Setup.thread(.in) file, 1997-12-04 00:48:27 +00:00
_cursesmodule.c Apply two changes, systematically: 1997-10-01 04:29:29 +00:00
_localemodule.c Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:53:56 +00:00
_tkinter.c Undo a silly effect of a global substitution: the macintosh panic() 1998-08-05 13:53:32 +00:00
almodule.c Fix some problems that a picky SGI compiler reported. Two were benign 1998-07-07 22:19:27 +00:00
arraymodule.c Added buffer_info() method that returns address and length in bytes of 1997-08-12 14:55:56 +00:00
audioop.c Purported fixes for 64-bit platforms with help from John Jorgensen 1998-04-23 20:23:00 +00:00
binascii.c Converted to new exception style (Jack) 1997-10-08 15:26:07 +00:00
bsddbmodule.c Make new gcc -Wall happy 1998-04-10 22:27:42 +00:00
cPickle.c Two fixes to find_class: 1998-08-11 19:52:51 +00:00
cStringIO.c Use 'S' format character for the optional constructor argument, so we 1998-07-24 19:53:54 +00:00
cdmodule.c Oops, forgot one. 1997-10-01 04:43:39 +00:00
cgen.py Keep gcc -Wall happy. 1997-04-29 21:34:16 +00:00
cgensupport.c Moved here from ../Python and quickly renamed. 1997-04-29 15:43:55 +00:00
cgensupport.h Moved rename2's macros relevant to this module here and added comment 1997-04-29 15:35:28 +00:00
clmodule.c lots of "goto error" replaced by "return" (Jack) 1997-10-08 15:26:28 +00:00
cmathmodule.c New form of PyFPE_END_PROTECT macro. 1997-03-14 04:32:50 +00:00
config.c.in Renamed inittab. 1997-04-29 20:31:59 +00:00
cryptmodule.c renamed grandly. 1996-12-09 23:14:26 +00:00
cstubs Generate the clear() method manually (calling __GLclear(), another 1998-04-28 16:09:16 +00:00
dbmmodule.c Apply two changes, systematically: 1997-10-01 04:29:29 +00:00
dlmodule.c Fix mysterious undetected error -- call to non-existant Py_Err_SetStr() 1997-12-16 23:58:15 +00:00
errnomodule.c Added a module docstring (that's all this module needs). 1998-08-11 17:50:22 +00:00
fcntlmodule.c Keep gcc -Wall happy 1997-08-15 02:52:08 +00:00
flmodule.c Keep gcc -Wall happy. 1997-04-29 21:34:16 +00:00
fmmodule.c Renamed, but not tested. Guido will you try your test script on this? 1997-01-17 16:08:55 +00:00
fpectlmodule.c Patch by Oliver Andrich for Lunix using glibc. 1997-12-15 18:07:10 +00:00
fpetestmodule.c Apply two changes, systematically: 1997-10-01 04:29:29 +00:00
gdbmmodule.c Don't allow unescaped newlines in doc strings. 1998-04-13 18:11:55 +00:00
getbuildinfo.c Include macbuildno.h here (mac only) (Jack) 1997-10-08 15:26:56 +00:00
getpath.c When following symlinks to the real executable, use a loop so a 1998-04-29 21:07:06 +00:00
glmodule.c Hm. What was previously checked in was the edited *output* of the old 1997-04-29 15:46:43 +00:00
grpmodule.c Nailed a couple of memory leaks, caught by Purify. 1997-01-09 22:22:05 +00:00
imageop.c Purported fixes for 64-bit platforms with help from John Jorgensen 1998-04-23 20:23:00 +00:00
imgfile.c Apply two changes, systematically: 1997-10-01 04:29:29 +00:00
ld_so_aix Mod suggested by Donn Cave -- invoke makexp_aix relative to $0 1997-09-03 00:45:30 +00:00
license.terms Add an optional hack for threads in Tkinter. 1997-09-28 05:52:41 +00:00
main.c Typo in usage message. 1998-04-13 20:28:18 +00:00
makesetup When a .o file is an absolute pathname, assume it's a file for which 1998-05-14 02:37:45 +00:00
makexp_aix remove C++ entries of the form Class::method 1998-04-09 21:46:02 +00:00
mathmodule.c Removed MetroWerks workaround, replaced by defines in mymath.h (Jack) 1997-05-20 15:59:04 +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 Export MPZType -- the type of mpz objects.... 1998-04-03 15:33:43 +00:00
newmodule.c Marc-Andre Lemburg's patch to support instance methods with other 1998-07-08 14:58:16 +00:00
nismodule.c Apply two changes, systematically: 1997-10-01 04:29:29 +00:00
operator.c Add an alias (and preferred name) "contains" for "sequenceIncludes". 1998-05-22 18:12:59 +00:00
parsermodule.c parser__pickler(): Use Py_DECREF() when reference is known to be non-NULL. 1998-08-04 15:58:10 +00:00
pcre-int.h AMK's revised version of the previous patch. 1998-05-07 15:32:44 +00:00
pcre.h AMK's revised version of the previous patch. 1998-05-07 15:32:44 +00:00
pcremodule.c Add test for failure of the getattr call in pcre_expand() -- it used 1998-07-17 20:19:48 +00:00
posixmodule.c In Win32 version of listdir(), when FindFirstFile() returns 1998-08-06 03:23:32 +00:00
puremodule.c (puremodule.c): New module which exports the Purify and Quantify C API 1997-01-17 00:01:33 +00:00
pwdmodule.c Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:53:56 +00:00
pypcre.c Fix benign problems found by a picky SGI compiler (unreachable break 1998-07-07 22:22:22 +00:00
python.c Now include Python.h 1998-08-08 20:01:22 +00:00
readline.c Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:53:56 +00:00
regexmodule.c Apply two changes, systematically: 1997-10-01 04:29:29 +00:00
regexpr.c Fix a benign problem found by a picky SGI compiler (unreachable break 1998-07-07 22:23:22 +00:00
regexpr.h Change [_Py_]re_compile_pattern() to return a char*. 1997-09-03 00:47:36 +00:00
resource.c Typo: RUSAGE_CHILDERN -> RUSAGE_CHILDREN. 1997-12-09 19:35:48 +00:00
rgbimgmodule.c Purported fixes for 64-bit platforms with help from John Jorgensen 1998-04-23 20:23:00 +00:00
rotormodule.c workaround for Mac MSL header definitions of TRUE and FALSE (Jack) 1997-05-20 15:58:36 +00:00
selectmodule.c Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:53:56 +00:00
sgimodule.c Great renaming. 1996-12-10 00:32:31 +00:00
signalmodule.c (pause_doc): Sun CC complains about newline in string literal 1998-07-21 22:41:18 +00:00
socketmodule.c Removed unused variables. 1998-08-06 03:21:15 +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 Add getintarg(), getlongarg(), getstrarg() to macros since these no 1997-10-20 23:22:07 +00:00
stropmodule.c Better error messages when raising ValueError for int literals. (The 1998-08-04 15:04:52 +00:00
structmodule.c Unsigned 1 and 2 byte sized formats shouldn't result in long integer values! 1998-06-29 04:00:40 +00:00
sunaudiodev.c Apply two changes, systematically: 1997-10-01 04:29:29 +00:00
svmodule.c Apply two changes, systematically: 1997-10-01 04:29:29 +00:00
syslogmodule.c Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:53:56 +00:00
tclNotify.c Add an optional hack for threads in Tkinter. 1997-09-28 05:52:41 +00:00
termios.c Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:53:56 +00:00
threadmodule.c Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:53:56 +00:00
timemodule.c Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 22:53:56 +00:00
timing.h remove rcs history 1996-01-26 21:10:22 +00:00
timingmodule.c Renamed. 1997-01-13 22:57:42 +00:00
tkappinit.c Yes, Virginia, Tix does have a Tix_SafeInit() function. 1997-12-02 20:38:38 +00:00
xxmodule.c Add a test for a bad format character. 1997-12-09 20:37: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
zlibmodule.c Fix benign problems found by a picky SGI compiler (unreachable break 1998-07-07 22:21:45 +00:00