Tuesday, June 28, 2016

Re: Contribute to Django - Python 3 or Python 2

I switched from Python2 to Python3 because I needed my Django code to fire off some TLSv1.2 code, that python2 could not do. I barely notice the difference between the two except in very small syntax differences. When I switched from python2 to python3, I literally did this:

find ./ -name "*.py" -exec 2to3 -w {} \;

And everything worked :)

I found it to have a more profound impact in other frameworks, such as Twisted or any type of socket programming, where you need to worry about encoding/decoding between unicode and binary strings.

On Tuesday, June 28, 2016 at 7:45:02 PM UTC-4, premdjango wrote:
Hello,
Im trying to contribute to Django project and started with this document.


Here in couple of places I see Python3 is being used but in most places python2 is used.

Should I use Python 3 or Python 2?


--
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.
To post to this group, send email to django-users@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/9ca05994-67cc-4ee4-bddd-1bd912dbe406%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment