diff options
author | Guido van Rossum <guido@python.org> | 2006-03-15 04:58:47 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-03-15 04:58:47 +0000 |
commit | 45aecf451a64fb1ebe5e74d0b00965ac8d99dff6 (patch) | |
tree | a7edcfb45ceafcffde68a3542aeba67089ea81cb /Python/errors.c | |
parent | f3175f6341ae207543a0d2d3be36c457349066e6 (diff) | |
download | cpython-git-45aecf451a64fb1ebe5e74d0b00965ac8d99dff6.tar.gz |
Checkpoint. 218 tests are okay; 53 are failing. Done so far:
- all classes are new-style (but ripping out classobject.[ch] isn't done)
- int/int -> float
- all exceptions must derive from BaseException
- absolute import
- 'as' and 'with' are keywords
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c index 7fc4c97c82..a64900bfd2 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -557,7 +557,8 @@ PyErr_NewException(char *name, PyObject *base, PyObject *dict) bases = PyTuple_Pack(1, base); if (bases == NULL) goto failure; - result = PyClass_New(bases, dict, classname); + result = PyObject_CallFunction((PyObject *) (base->ob_type), + "OOO", classname, bases, dict); failure: Py_XDECREF(bases); Py_XDECREF(mydict); |