Mercurial > cpython-lru_cache-weakref
diff Python/errors.c @ 36988:49c6eb688906
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
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 15 Mar 2006 04:58:47 +0000 |
| parents | 8e04de2480e4 |
| children | a47117fa3ca8 |
line wrap: on
line diff
--- a/Python/errors.c Tue Mar 14 22:22:15 2006 +0000 +++ b/Python/errors.c Wed Mar 15 04:58:47 2006 +0000 @@ -557,7 +557,8 @@ 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);
