[Python-bugs-list] [ python-Bugs-448144 ] incompatible change of string type name

noreply@sourceforge.net noreply@sourceforge.net
Mon, 06 Aug 2001 11:47:24 -0700


Bugs item #448144, was opened at 2001-08-05 05:43
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=448144&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Martin v. Löwis (loewis)
Assigned to: Guido van Rossum (gvanrossum)
Summary: incompatible change of string type name

Initial Comment:
In Python 2.1 and earlier, type("").__name__ was 
"string". In 2.2a1, it is "str". This change breaks 
the xml.marshal package of PyXML, which uses the type 
name to generate a method m_string. Since there is no 
m_str method implemented, running the marshaller 
under 2.2 fails.


----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-08-06 11:47

Message:
Logged In: YES 
user_id=6380

Hm. If I change the type's name back to 'string', the
built-in name for it has to be 'string' (otherwise some part
of marshal or pickle won't work). But I had hoped to use the
'string' built-in name for the base class of str and
unicode.

Is it terribly inconvenient to have to rename the m_string
function to m_str?


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=448144&group_id=5470