As mention six is more elegant than import sys try: except stuff.
A lot is under
Also use future then can take quite a lot.
To move faster forward,Python 3.6 aslo has a lot features that can not be back ported.
Django 2.0 will drop Python 2.7 and 3.4,i think this is the right move.
A lot is under
six.moves
.Also use future then can take quite a lot.
from __future__ import absolute_import, division, print_function, unicode_literals from six.moves import input from six.moves.urllib.request import urlopen from six.moves import rangeI think is best to not write code for Python 2.x anymore.
To move faster forward,Python 3.6 aslo has a lot features that can not be back ported.
Django 2.0 will drop Python 2.7 and 3.4,i think this is the right move.
Quote:Django 2.0 supports Python 3.5+. Since Django 1.11, support for Python 2.7 and 3.4 is removed.