mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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
This commit is contained in:
parent
f3175f6341
commit
45aecf451a
24 changed files with 87 additions and 6365 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue