From: SourceForge.net <no...@so...> - 2007-01-02 01:30:05
|
Patches item #1612713, was opened at 2006-12-10 13:43 Message generated for change (Comment added) made by cgroves You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312867&aid=1612713&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Henrik Eriksson (h_eriksson) Assigned to: Nobody/Anonymous (nobody) Summary: Bug [ 1604264 ] str(o) on str subclass o uses o.__repr__() n Initial Comment: Bugfix for [ 1604264 ] str(o) on str subclass o uses o.__repr__() not o.__str__() ---------------------------------------------------------------------- >Comment By: Charles Groves (cgroves) Date: 2007-01-01 20:30 Message: Logged In: YES user_id=1174327 Originator: NO I don't understand why for_type should be PyStringDerived as the patch says. I thought for_type on PyNewWrapper indicated the type the new worked for? It seems to me that the problem is in PyString.returnString where if S is an instance of PyString, it's returned regardless of if it happens to be a subclass of str that has an implementation of __str__ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312867&aid=1612713&group_id=12867 |