Update of /cvsroot/python/python/dist/src/Objects In directory slayer.i.sourceforge.net:/tmp/cvs-serv21384/Objects Modified Files: unicodeobject.c Log Message: Jeremy Hylton: better error message for unicode coercion failure Index: unicodeobject.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v retrieving revision 2.42 retrieving revision 2.43 diff -C2 -r2.42 -r2.43 *** unicodeobject.c 2000/07/10 18:27:47 2.42 --- unicodeobject.c 2000/07/11 09:47:04 2.43 *************** *** 407,412 **** case of a TypeError. */ if (PyErr_ExceptionMatches(PyExc_TypeError)) ! PyErr_SetString(PyExc_TypeError, ! "coercing to Unicode: need string or buffer"); goto onError; } --- 407,414 ---- case of a TypeError. */ if (PyErr_ExceptionMatches(PyExc_TypeError)) ! PyErr_Format(PyExc_TypeError, ! "coercing to Unicode: need string or buffer, " ! "%.80s found", ! obj->ob_type->tp_name); goto onError; }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4