On Thu, May 28, 2009 at 10:53 PM, Roberto Cea <rodrigo...@gmail.com> wrote:

>
> I see. I take it this only works in 2.6?
>
> Thanks,
>
> Rodrigo
>
> On May 28, 11:48 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> > On Thu, May 28, 2009 at 11:29 PM, Roberto Cea <rodrigo...@gmail.com>
> wrote:
> >
> > > I'm just coming off of a Unicode bug hunting expedition, adding a ton
> > > of "u"s before quotation marks.
> > > Is there a way to tell Django (or Python): "Assume all my strings are
> > > unicode, ok?"
> >
> > If you're using Python 2.6:
> >
> > Python 2.6 (r26:66721, Oct  2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
> on
> > win32
> > Type "help", "copyright", "credits" or "license" for more information.
> >
> > >>> x = 'xyz'
> > >>> type(x)
> > <type 'str'>
> > >>> from __future__ import unicode_literals
> > >>> y = 'yaz'
> > >>> type(y)
> > <type 'unicode'>
> >
> > Karen
> >
>
That's correct, only in 2.6 does this work.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to