[IronPython] Django, __unicode__, and #20366
jdhardy at gmail.com
Mon Feb 1 22:35:31 CET 2010
On Mon, Feb 1, 2010 at 2:21 PM, Dino Viehland <dinov at microsoft.com> wrote:
> It always prefers __unicode__ over __str__. We can't really only call
> __unicode__ when __str__ isn't there because __str__ is always there.
OK - didn't realize that. Not sure it would really improve the
behaviour all that much anyway.
Anything that really needs to know the difference and support
IronPython can just check `str is unicode` anyway.
Random thought: str(x, yes_really=True) to always call __str__? :)
More information about the Ironpython-users