from __future__ import unicode_literals

92 views
Skip to first unread message

Omar Al-Ithawi

unread,
Oct 20, 2016, 1:36:27 PM10/20/16
to General Open edX discussion
Hi Everyone,

We've had a discussion in the Slack group (link), about providing an even better support for unicode strings in the edX platform.

Django already encourages the use of Unicode everywhere, and there has been so many efforts to support unicode in the platform. But it seems that adding the u"" is very easy to get forgotten.

One solution is to move to Python 3 of course. The other more approachable solution is to adopt the unicode literals in every python script:
  • from __future__ import unicode_literals

I know this is not straightforward but I think it's worth taking the effort. This article explains a lot about the subject.

I would like to hear from you and perhaps someone can open a PR for this.

Thanks,

Ned Batchelder

unread,
Oct 20, 2016, 3:02:01 PM10/20/16
to edx-...@googlegroups.com
This is an interesting idea, and deserves more discussion before opening a PR :)

--Ned.

--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/a50dd461-a9f6-4402-9c1e-42a4c4426543%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages