Commit Graph

11 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 bd4435abcc Don't use ANSI string literal concatenation (everything is K&R compatible). 1997-09-05 07:01:19 +00:00
Guido van Rossum ed2554a396 Casts by Jack to shut up the Mac compiler. 1997-08-18 15:31:24 +00:00
Guido van Rossum 7c14103d77 Keep gcc -Wall happy 1997-08-15 02:52:08 +00:00
Guido van Rossum f1c018de87 Fixed refcount bug (thank you, Purify and AMK). 1997-08-14 21:19:13 +00:00
Guido van Rossum 95e8053a9f 1.5a3 prerelease 1 from AMK 1997-08-13 22:34:14 +00:00
Guido van Rossum c24f038464 Changes by AMK:
Removed handling of \e, \cX escapes, following a string-SIG discussion.

Fixed minor typos in re.py
re.error is now set equal to reop.error.
Move definition of constants like NORMAL and CHARCLASS into reop, which
  exports them; re.py was changed to import them from reop.
Added C equivalents of _expand and expand_escape to reop, and changed
  re.py to use them.
1997-08-13 03:24:53 +00:00
Guido van Rossum 74fb303997 Jeffrey's latests 1997-07-17 22:41:38 +00:00
Guido van Rossum 04a1d74229 Jeffrey's newest 1997-07-15 14:38:13 +00:00
Guido van Rossum 63e18195b8 New version from Jeffrey after I complained about some glaring bugs. 1997-07-11 11:08:38 +00:00
Guido van Rossum db25f32849 New versions straight from Jeffrey Ollie's web site 1997-07-10 14:31:32 +00:00