Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 16048:70bb1119044a legacy-trunk
Backed out the unistr() builtin.
| author | Marc-André Lemburg <mal@egenix.com> |
|---|---|
| date | Fri, 19 Jan 2001 21:36:19 +0000 |
| parents | 7234d7c3c29f |
| children | bf678a11c21a |
line wrap: on
line diff
--- a/Python/bltinmodule.c Fri Jan 19 21:06:50 2001 +0000 +++ b/Python/bltinmodule.c Fri Jan 19 21:36:19 2001 +0000 @@ -1936,23 +1936,6 @@ static PyObject * -builtin_unistr(PyObject *self, PyObject *args) -{ - PyObject *v; - - if (!PyArg_ParseTuple(args, "O:unistr", &v)) - return NULL; - return PyObject_Unicode(v); -} - -static char unistr_doc[] = -"unistr(object) -> unicode\n\ -\n\ -Return a nice unicode representation of the object.\n\ -If the argument is a unicode, the return value is the same object."; - - -static PyObject * builtin_tuple(PyObject *self, PyObject *args) { PyObject *v; @@ -2267,7 +2250,6 @@ {"type", builtin_type, 1, type_doc}, {"unicode", builtin_unicode, 1, unicode_doc}, {"unichr", builtin_unichr, 1, unichr_doc}, - {"unistr", builtin_unistr, 1, unistr_doc}, {"vars", builtin_vars, 1, vars_doc}, {"xrange", builtin_xrange, 1, xrange_doc}, {"zip", builtin_zip, 1, zip_doc},
