[Python-checkins] CVS: python/dist/src/Objects stringobject.c,2.103.2.5,2.103.2.6

Guido van Rossum gvanrossum@users.sourceforge.net
Sat, 16 Jun 2001 07:38:39 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv10364

Modified Files:
      Tag: descr-branch
	stringobject.c 
Log Message:
Change the name of the string type from string to str, so that it
doesn't lie (since it's __builtin__.str now).

This breaks my heart, and maybe I'll think of a better solution later,
but for now, this is the best I can think of to make built-in types
picklable.

Types should be smarter about when to return __builtin__ as their
module name, but that's a separate story.


Index: stringobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/stringobject.c,v
retrieving revision 2.103.2.5
retrieving revision 2.103.2.6
diff -C2 -r2.103.2.5 -r2.103.2.6
*** stringobject.c	2001/06/14 01:01:16	2.103.2.5
--- stringobject.c	2001/06/16 14:38:37	2.103.2.6
***************
*** 2381,2385 ****
  	PyObject_HEAD_INIT(&PyType_Type)
  	0,
! 	"string",
  	sizeof(PyStringObject),
  	sizeof(char),
--- 2381,2385 ----
  	PyObject_HEAD_INIT(&PyType_Type)
  	0,
! 	"str",
  	sizeof(PyStringObject),
  	sizeof(char),