sujeesh
sujeesh

Reputation: 498

Python 2.7 or 3.3 for learning Django

I am interested in learning Python but I don't know which version I should chose. When I Googled, I got answers posted over a year ago. If I want to learn Django, which version will be useful and will get support?

Note that I know C, C++, Java and C#.

Upvotes: 8

Views: 6540

Answers (4)

jfs
jfs

Reputation: 414079

If you already know several languages then learn both Python 2 and 3. The difference is small enough to allow many projects to support both versions using single (the same) source code.

For actual deployment you might prefer Python 2.7 if you need to use dependencies that are not ported to Python 3.

Upvotes: 0

0x90
0x90

Reputation: 40972

I would recommend to start with python 2.7, it just more commonly used nowadays, and django is written in 2.7 AFAIK.

Apparently the answer you found still holds:

Should we use python 2.6 or 2.7 or 3.x?

Upvotes: 0

Mihai8
Mihai8

Reputation: 3147

First, a short comparison is It's Better than 2.7 and When should Python 3.3 become the default. However, remember that Python is in fact a script language and you can use C or C++ in doing modules with new capabilities.

Upvotes: 1

Martijn Pieters
Martijn Pieters

Reputation: 1121186

Django only has experimental support for Python 3, so you'll have to go with Python 2.7 for now.

Upvotes: 7

Related Questions