What version of Python should I use to develop web applications?

I currently have Python 3.1.1 installed on my system, the same version on my server with WSGI 3.0, running on Apache 2.2.

I want to continue to use Python 3.1, but I believe that many libraries / frameworks do not yet support it, namely Django, Pylons, MySQLdb, etc.

I also checked the account that I have on another server and it runs Python 2.3.4 ...

I want to write some kind of blog / forum type application that I can expand in the CMS, and ultimately write appropriate desktop applications as a kind of long-term pet project.

I would like to use the latest version of Python for better security and maximum consistency with future desktop applications, while maintaining a good level of portability and supporting most frameworks and libraries. use.

But I'm lost on which one I should choose. It seems that 2.4 will have the greatest mobility, but it seems to be old, and I do not want to finish using post-2.4 functions that will not compile, and rewrite with more dirty code to compensate for this. 2.6 would be better, but it looks like many libraries are still porting to this, and 3.1 will be better because it fixes a lot of errors from the language.

, , , , , Python. , , Python 2.3.4 -, / ? , Python 2.6 3.1? __future__ ?

, ? 2.6 ? 2.4, ? 3.1 , , MySQLdb, ?

+3
4

Python 2.5, .

Google App Engine ( Django). Python 2.5 . scipy () "C" .

Python2.5. , python3k .

+2

Python 3 . , Python. , , , , C , . 2.3, 2.4-2.6, . , 2.6, Python 3, , .

Python 3 - Catch 22:

  • - 3, ,
  • , , , , .

2.4-2.6, 3, .

Python 2.6

+4

"2.6 , , - "

? , , " "?

"3.1 ", , / "

. . .

" 2.6 "

? - ?

, , . ?

+1

- python 2.5 (- wiki, WSDI httpd). - python 3.2. , . 3.2 . , , 2.5. 3.2 - , python.

: .

0

Source: https://habr.com/ru/post/1734154/


All Articles