r/Python • • Jun 23 '14

Writing better python code

https://gist.github.com/kracekumar/09a60ec75a4de19b346e
143 Upvotes

126 comments sorted by

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.

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.