Commit Graph

6 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 b8ad024a4e Add 'return' keyword before error calls. 1997-07-17 22:55:06 +00:00
Barry Warsaw 5709dcfaec The usual return-value and memory management checks. I'm not planning
a test for this module though (it does compile at least on Solaris
2.5)
1997-01-10 18:42:18 +00:00
Guido van Rossum 36dd0d27c4 Fix operator priority bug found thanks to gcc -Wall. 1996-12-10 15:23:00 +00:00
Guido van Rossum 602099a756 * various modules: #include "Python.h" and remove most remporary
renaming hacks
1994-09-14 13:32:22 +00:00
Guido van Rossum 9adae8e182 Steen Lumholt's termios interface. 1994-09-12 10:41:22 +00:00