A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2000-July/011975.html below:

[Python-checkins] CVS: python/dist/src/Objects unicodeobject.c,2.42,2.43

[Python-checkins] CVS: python/dist/src/Objects unicodeobject.c,2.42,2.43M.-A. Lemburg python-dev@python.org
Tue, 11 Jul 2000 02:47:08 -0700
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