Python 2 versus 3

38 views
Skip to first unread message

BIJAL MANIAR

unread,
Sep 4, 2017, 2:04:48 AM9/4/17
to Django users

Hi,

I have current django application with django 1.11 and python 2.7.
Python 2.7 has support till 2020-01-01 and 3.5 has support till 2020-09-13.
I've been asked to upgrade to Python 3.5. My question is why is there a need to upgrade from 2.7 to 3.5 as EOL support for both of them is nearly the same. 
Should I invest time in upgrading to Python3.5 or not?
Which is the latest Python3 LTS version and its EOL support?

Any help would be appreciated.

Thanks,
Bijal

Antonis Christofides

unread,
Sep 4, 2017, 2:34:17 AM9/4/17
to django...@googlegroups.com

Hi,

the reason is that Python 3.6 is backwards-compatible with 3.5. Same thing with 3.7 and 3.8 and generally 3.x for x>=6. In contrast, Python 3.0 is backwards-incompatible with 2.7. So if you upgrade to 3.5 now, your program will also run in any Python 3 version later than 3.5. The big thing is to upgrade from Python 2 to Python 3, the minor version numbers don't play any significant role. So yes, you should definitely invest in upgrading to Python 3.

As far as I know Python doesn't distinguish between LTS and non-LTS versions. The latest version is 3.6. There's a convenient version table at https://en.wikipedia.org/wiki/CPython#Version_history.

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/df3849b9-1b6a-4a68-b0b4-edbf816d5213%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lachlan Musicman

unread,
Sep 4, 2017, 2:34:27 AM9/4/17
to django...@googlegroups.com
Bijal,

Django 2.x - the next release cycle - will be Python 3.x

Most major OSes will be moving to Python 3.x in their next release (eg in RedHat/CentOS 7.4 (I think))...

If it's no big deal - and it really shouldn't be - you should move to Python 3.x



Cheers
L.

------
"The antidote to apocalypticism is apocalyptic civics. Apocalyptic civics is the insistence that we cannot ignore the truth, nor should we panic about it. It is a shared consciousness that our institutions have failed and our ecosystem is collapsing, yet we are still here — and we are creative agents who can shape our destinies. Apocalyptic civics is the conviction that the only way out is through, and the only way through is together. "

Greg Bloom @greggish https://twitter.com/greggish/status/873177525903609857

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

Melvyn Sopacua

unread,
Sep 4, 2017, 2:41:34 AM9/4/17
to django...@googlegroups.com
At this point it makes more sense to upgrade to 3.6, but that
aside, next Django release (2.0) will drop support for Python
2.

Dealing with 2 major version upgrades is not the best platform
for a smooth ride.
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/df3849b9-1b6a-4a68-b0b4-edbf816d5213%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Melvyn Sopacua

James Bennett

unread,
Sep 4, 2017, 3:12:34 AM9/4/17
to django...@googlegroups.com
Here is a very comprehensive article on why Python 3 is an improvement over Python 2:

Ari Davidow

unread,
Sep 4, 2017, 7:42:17 AM9/4/17
to django-users
Python 2 in general is reaching end of life. If you have the time to make the transition to Python 3 now, it will be significantly easier to maintain your installation (or any other python application) moving forward. 

ari

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages