[Python-Dev] Re: [Python-checkins] python/dist/src/Python bltinmodule.c, 2.312, 2.313 (original) (raw)

Guido van Rossum guido at python.org
Mon Jul 19 19:19:24 CEST 2004


On Mon, Jul 19, 2004 at 09:29:20AM -0700, nascheme at users.sourceforge.net wrote:

> ! res = (*nb->nbhex)(v); > ! if (res && !PyStringCheck(res)) { > ! PyErrFormat(PyExcTypeError, > ! "hex returned non-string (type %.200s)", > ! res->obtype->tpname); > ! PyDECREF(res); > ! return NULL; > ! } > ! return res; Should hex/oct be allowed to return Unicode?

What would the point be? I don't know of any hexadecimal or octal digits that aren't ASCII.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list