Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 62155:600c23127207
Issue #8848: U / U# formats of Py_BuildValue() are just alias to s / s#
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Mon, 07 Jun 2010 19:57:46 +0000 |
| parents | 1698c55b2af9 |
| children | 00e4ce31d404 |
comparison
equal
deleted
inserted
replaced
| 62154:0d9347934cc5 | 62155:600c23127207 |
|---|---|
| 677 bases = PyTuple_Pack(1, base); | 677 bases = PyTuple_Pack(1, base); |
| 678 if (bases == NULL) | 678 if (bases == NULL) |
| 679 goto failure; | 679 goto failure; |
| 680 } | 680 } |
| 681 /* Create a real new-style class. */ | 681 /* Create a real new-style class. */ |
| 682 result = PyObject_CallFunction((PyObject *)&PyType_Type, "UOO", | 682 result = PyObject_CallFunction((PyObject *)&PyType_Type, "sOO", |
| 683 dot+1, bases, dict); | 683 dot+1, bases, dict); |
| 684 failure: | 684 failure: |
| 685 Py_XDECREF(bases); | 685 Py_XDECREF(bases); |
| 686 Py_XDECREF(mydict); | 686 Py_XDECREF(mydict); |
| 687 Py_XDECREF(classname); | 687 Py_XDECREF(classname); |
