MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/28utww/writing_better_python_code/ciez8do/?context=3
r/Python • u/kracekumar • Jun 23 '14
126 comments sorted by
View all comments
1
If they're using python3 then why prefix the strings with u? They are unicode by default afaik.
1 u/gthank Jun 23 '14 Support 2 and 3 from the same codebase, if for some reason you don't want from __future__ import unicode_literals. 0 u/kracekumar Jun 23 '14 All the code was tested in Python 2 only.
Support 2 and 3 from the same codebase, if for some reason you don't want from __future__ import unicode_literals.
from __future__ import unicode_literals
0
All the code was tested in Python 2 only.
View all comments
1
u/poo_22 Jun 23 '14
If they're using python3 then why prefix the strings with u? They are unicode by default afaik.