1490
說明:
|
1926
|
這個顏色代表刪除的 | 這個顏色代表增加的 |
行號 17: | 行號 17: |
* 要用 [[Django]](尚末支援 Python 3)。註:Pyramid 1.3 將支援 Python 3。 | |
行號 25: | 行號 26: |
* [[http://python3wos.appspot.com/|Python 3 Wall of Shame|target="_blank"]] 熱門套件有沒有上 Python 3 的表(婊XD)。 * Python 官網: * [[http://docs.python.org/py3k/whatsnew/3.0.html|What's new in Python 3.0|target="_blank"]] * [[http://wiki.python.org/moin/Python2orPython3|Python 2 or Python 3|target="_blank"]] |
這裡目前主要是比較 Python 2 系列與 Python 3 系列。
為什麼要用(學)Python 3?
- 比較新。
- 之後不用再學一次 Python 3 的語法(但前提是不會需要寫到 Python 2 的程式)。
- Python 3 是目前官方持續開發(加新功能)的版本。
- Python 2 最後一個開發版本將維持在 2.7.2,並且不會再有新版(不再加新功能),除非有重大安全才會釋出安全更新版。
- 許多函式庫已經完成 Python 3 的移植。
更完整的 Unicode 處理能力。例:Python 3 強力中文處理能力 on 炎龍老師的 Blog,2009.09
為什麼不用(學)Python 3
- 許多函式庫尚未完成 Python 3 的移植。
- 目前尚非各平台內建版本(因為上一點)。
- 本身有特殊需求(例如新工作裡要接手的大量程式都已用 Python 2 完成)、需要用到 Jython(目前停留在 2.5)、Google App Engine(GAE 目前到 2.7)。
要用 Django(尚末支援 Python 3)。註:Pyramid 1.3 將支援 Python 3。
參考
Ubuntu 安裝 Python 3 on 阿舍的隨手記記、隨手寫寫...,2011.12
Python 2 與 3 之字串與檔案 on Thinking more...,2011.07
外文參考
Python 3 Wall of Shame 熱門套件有沒有上 Python 3 的表(婊XD)。
- Python 官網:
Dive Into Python 3 by Mark Pilgrim,2011