Commit Graph

16 Commits

Author SHA1 Message Date
Guido van Rossum 0cb96de269 Apply two changes, systematically:
(1) Use PyErr_NewException("module.class", NULL, NULL) to create the
    exception object.

(2) Remove all calls to Py_FatalError(); instead, return or
    ignore the errors -- the import code now checks PyErr_Occurred()
    after calling a module's init function, so it's no longer a
    fatal error for the initialization to fail.

Also did some small cleanups, e.g. removed unnecessary test for
"already initialized" from initfpectl(), and unified
initposix()/initnt().

I haven't checked this very thoroughly, so while the changes are
pretty trivial -- beware of untested code!
1997-10-01 04:29:29 +00:00
Guido van Rossum 0b82fe773f Partial(?) 64bit patch (AMK). 1997-05-22 20:24:07 +00:00
Guido van Rossum 7844e38a98 Keep Microsoft VC happy. 1997-04-11 20:44:04 +00:00
Guido van Rossum fd16d9438d (Jack:) fopen arg typo (?) "rw" changed to "rb". 1997-04-11 19:12:20 +00:00
Guido van Rossum 5680906cdb Change all three fopen calls to use binary mode. 1997-02-21 15:19:03 +00:00
Barry Warsaw 2dc8c2c26b Primarily formatting changes, but I also plugged a couple of potential
return value problems, memory leaks, and descriptor leaks.
1997-01-09 22:29:12 +00:00
Roger E. Masse 5b0eba3ced Reindented. 1997-01-03 18:51:01 +00:00
Barry Warsaw 7bd9fbdea2 Grandly renamed.
Note that since I have no idea how to test this, I didn't write a test
case.  It does seem to at least compile on my system though.
1996-12-11 21:33:16 +00:00
Guido van Rossum a376cc5cc8 Keep gcc -Wall happy. 1996-12-05 23:43:35 +00:00
Guido van Rossum 2977e5d660 Declare a bunch of internal routines as returning void. 1996-08-19 22:02:19 +00:00
Guido van Rossum 3bbc62e9c2 Another bulky set of minor changes.
Note addition of gethostbyaddr() and improved repr() for sockets,
renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
1995-01-02 19:30:30 +00:00
Guido van Rossum b6775db241 Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
Sjoerd Mullender 8b03cae9a8 Integers are specified as "i" and not as "d". 1994-01-07 11:47:39 +00:00
Sjoerd Mullender 0d2d397bc5 Added function ttob. 1993-12-24 14:51:14 +00:00
Sjoerd Mullender 92fa23fd6d ANSIfied somewhat. 1993-12-24 10:05:51 +00:00
Sjoerd Mullender c4f169cc5a rgbimgmodule.c, Makefile, config.c: new module to read RGB image files.
Does not need any SGI-specific libraries.
cgen.py, cstubs, Makefile: Generate glmodule.c differently so that it
	can be compiled using an ANSI compiler.
1993-12-21 17:06:12 +00:00