[IronPython] Django, __unicode__, and #20366
fuzzyman at voidspace.org.uk
Sun Jan 31 20:25:16 CET 2010
On 31/01/2010 01:21, Jeff Hardy wrote:
> Hi all,
> I've got a question regarding __unicode__ and issue #20366. Django
> explicitly encourages the use of __unicode__ on models, which would
> not be available on IronPython. Also, they have some lazy evaluation
> functions that depend on differences between str and unicode, and
> default to using __unicode__. Now, these differences could be worked
> around in Django, but I wonder if that's the right place for them.
There's *unlikely* to be an easy fix in IronPython any time soon,
although I would love to be proved wrong. The Django team have
*explicitly* said that they are open to patches (or even just bug
reports) to make Django compatible with IronPython.
> also have no idea how this will play out under 3.0.
Django is not expecting to move to Python 3 for quite some time as I
> I'm working around by checking `str is unicode`; I'm not sure there's
> really a better option.
That sounds like a good solution to me.
> - Jeff
>  http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=20366
I still think the partial-fix I suggest in that issue would be much
better than the current situation...
All the best,
>  http://docs.djangoproject.com/en/1.1/ref/models/instances/#django.db.models.Model.__unicode__
> Users mailing list
> Users at lists.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