Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 41558:29ae667f3239
Checkpoint. Manipulated things so that string literals are always
unicode, and a few other compensating changes, e.g. str <- unicode,
chr <- unichr, and repr() of a unicode string no longer starts
with 'u'. Lots of unit tests are broken, but some basic things
work, in particular distutils works so the extensions can be built,
and test_builtin.py works.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 27 Apr 2007 23:53:51 +0000 |
| parents | 06145fbc7ab9 |
| children | e16c8e5c5ca4 |
line wrap: on
line diff
--- a/Python/ceval.c Fri Apr 27 20:16:19 2007 +0000 +++ b/Python/ceval.c Fri Apr 27 23:53:51 2007 +0000 @@ -2633,7 +2633,7 @@ PyObject *keyword = kws[2*i]; PyObject *value = kws[2*i + 1]; int j; - if (keyword == NULL || !PyString_Check(keyword)) { + if (keyword == NULL || !(PyString_Check(keyword) || PyUnicode_Check(keyword))) { PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", PyString_AsString(co->co_name));
