[Python-porting] Stuck with raw unicode literals

Chitrank Dixit chitrankdixit at gmail.com
Thu May 23 07:37:47 CEST 2013


Hello Python developers

I am working on Python Porting 2.7 >=3.3 . unicode literals will be fine
but still raw unicode literals is an issue (ur' '). I have found the
solution in six module.

This is the solution

original python 2.7 code
ur'Pythondev'

using six module for py 2.7>=3.3
six.u(r'Pythondev')

Does my solution is okay or something else is needed to do I am very
confused with this.


*Regards
*
*Chitrank Dixit
*
*IIPS-DAVV
*
*Indore (M.P.) , India *
*MCA
*
*trackleech.blogspot.in*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20130523/1b8a3889/attachment.html>


More information about the Python-porting mailing list