#5560: unicode lazy strings don't work on Jython
--------------------------------------------+-------------------------------
Reporter: leosoto <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Component:
Uncategorized
Version: SVN | Resolution:
Keywords: jython | Stage: Accepted
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
--------------------------------------------+-------------------------------
Comment (by leosoto <[EMAIL PROTECTED]>):
Well, Jython now dropped {{{object.__unicode__}}}, '''but''' a
{{{__unicode__}}} method assigned specifically to an instance doesn't
work.
In fact, on CPython it seems that the only {{{__*__}}} method that works
when assigned to an instance is {{{__unicode__}}} (all the others are
looked up on the type, not the instance).
So, this patch still sounds reasonable, as the original code relies on a
obscure implementation detail of CPython.
--
Ticket URL: <http://code.djangoproject.com/ticket/5560#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---