Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 42291:3772103200ec
Three patches by Amaury Forgeot d'Arc; SF patch# 1754484.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 16 Jul 2007 20:46:27 +0000 |
| parents | 18e5ae91bd29 |
| children | ac192f89c109 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Mon Jul 16 19:50:03 2007 +0000 +++ b/Python/bltinmodule.c Mon Jul 16 20:46:27 2007 +0000 @@ -314,14 +314,17 @@ return PyUnicode_FromOrdinal(x); } -PyDoc_STRVAR(chr_doc, +PyDoc_VAR(chr_doc) = PyDoc_STR( "chr(i) -> Unicode character\n\ \n\ Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff." +) #ifndef Py_UNICODE_WIDE +PyDoc_STR( "\nIf 0x10000 <= i, a surrogate pair is returned." +) #endif -); +; static PyObject * @@ -1219,14 +1222,17 @@ return NULL; } -PyDoc_STRVAR(ord_doc, +PyDoc_VAR(ord_doc) = PyDoc_STR( "ord(c) -> integer\n\ \n\ Return the integer ordinal of a one-character string." +) #ifndef Py_UNICODE_WIDE +PyDoc_STR( "\nA valid surrogate pair is also accepted." +) #endif -); +; static PyObject *
