2007/7/24, David Larlet <[EMAIL PROTECTED]>:
> 2007/7/23, Jacob Kaplan-Moss <[EMAIL PROTECTED]>:
> > It's probably just your shell; try ``print myobject`` instead.
>
> Before I switched to the unicoded trunk, it works perfectly but know
> unicoded string were escaped so I have:
>
> >>> myobject # call __repr__
> <MyObject: Title of my object>\n    <MySubObject: Title...
> >\n</MyObject: Title of my object>\n
>
> That's why I want to "unescape" unicoded strings. I hope to be clear.
>

If I want to have what I expected, I must type:

>>> print myobject.__repr__().replace('\\\\n', '\n')

Which is a bit ugly in comparison to the simple ``>>> myobject``
previous line...

David

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to