[IronPython] Django, __unicode__, and #20366

Michael Foord fuzzyman at voidspace.org.uk
Tue Feb 16 00:53:32 CET 2010

On 15/02/2010 23:51, Jeff Hardy wrote:
> On Mon, Feb 15, 2010 at 4:41 PM, Dino Viehland<dinov at microsoft.com>  wrote:
>> We could make % on a Unicode literal do something special much like
>> we're doing for calls to unicode(...).  Alternately we could make %
>> try to invoke __unicode__ before __str__ - but that would sometimes
>> be wrong.  Probably not very often, it's hard to imagine someone
>> defining __unicode__ and expecting __str__ to be returned with
>> a significant difference.
> Fixing up u"..." literals is probably the lowest impact change,
> especially for a point release. You never know what crazy stuff people
> might do.

Yeah - u'%s' % foo is basically equivalent to u'%s' % unicode(foo) anyway...


> - Jeff
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.

More information about the Ironpython-users mailing list