2007年11月6日 星期二
2007年11月5日 星期一
2007年11月4日 星期日
周蟒(zhpy) 1.3 版發佈, 解壓縮即用
請使用
$ easy_install -U zhpy
命令下載或更新周蟒版本.
或前往網站查看更多關於周蟒的內容
http://code.google.com/p/zhpy/
這版本主要是增加解壓縮即用(開箱即用/Battery Included)的能力.
附帶了 pyparsing 模塊.
只要下載了源碼包(Source Pack), 解壓縮後即可直接執行
$ python interpreter.py
來直接試用周蟒直譯器. 或執行
$ python commandline.py
來執行周蟒程式或轉換 python 程式成周蟒程式. (跟一般周蟒命令列工具用法相同)
只有想要用中文系統腳本或隨處可執行周蟒的情況下才一定得安裝周蟒.
就像漫畫 jojo 冒險野郎中的白蛇能抽取替身能力者的能力成為 Disc, 將Disc放到任何人身上這個人就立即擁有該替身能力一樣.
另一個特點是模塊包更獨立. 繁簡中文插件包是分開的.
你可以從源碼包中刪掉用不著的簡體中文插件(plugcn.py), 周蟒仍能正常執行.
或是從源碼包中單獨取出 interpreter.py(直譯器), zhpy.py(核心), zhdc.py(關鍵詞轉換庫), plugtw.py (繁中插件) 四個檔(如果沒裝 pyparsing 的話也要拷貝 pyparsing.py), 執行
$ python interpreter.py
也能執行有限功能的周蟒(zhpy core).
zhpy Changelog
====================
1.3 (11/5/2007):
--------------------
code name: White Snake
*Changes*
* Separate traditional and simplified chinese keywords from zhdc to plug[lang].py
* moveout plugins' setuptools dependency, now you can try zhpy without install.
* change keyword:
* "引用錯誤", "引用错误" instead of "参考错误":"ReferenceError"
* make py_annotator work while only plugtw or plugcn exists.
*Features*
* support custom name space in zh_exec, thanks renhbo
* able to run the commandline without install
* able to run the interpreter with 4 module ["interpreter", "zhpy", "zhdc", "plug[lang]"]
without install (core mode)
* able to profiling standalone interpreter with "--profile" option
*Fixes*
* fix keyword "locals" instead of "local"
* generate proper profix while the origin source is suffixed with '.tw.py' or '.cn.py'
*Project Updates*
* include pyparsing in distribution
* doc update
* add official zhpy blog: http://zhpy.blogspot.com/
* remove zhpy_ext sample
*Contributors*
Fred Lin, renhbo
2007年11月2日 星期五
2007年10月30日 星期二
2007年10月19日 星期五
周蟒 1.2 版發佈
請使用 $ easy_install -U zhpy 命令下載或更新周蟒版本.
或前往網站查看更多關於周蟒的內容 http://code.google.com/p/zhpy/
主要加強有:
* 內建 sys 模組關鍵詞
http://code.google.com/p/zhpy/wiki/ZhpyModules
* 加入雙向轉換測試用例
test_api.py
* 雙向中文變量轉換 zh_chr/zh_ord
assert zh_chr(zh_ord('範例'.decode("utf8"))) == '範例'
* 雙向中文中文檔名轉換
$ zhpy -p 範例.py
產生檔名 p_7bc4_4f8b_v.py
再用 $ zhpy --tw p_7bc4_4f8b_v.py
產生檔名 v_範例.py
另外歡迎 renhbo 加入開發者行列
1.2 (10/19/2007):
--------------------
code name: Requiem
*Changes*
* Use build-in int function to convert hex string, thanks Jiahua Huang
* refactor repeative tripleQuote pattern to single place (zhpy)
* refactor 'number_to_variable' function to 'zh_chr' function (pyzh)
* refactor 'variable_to_number' function to 'zh_ord' function (zhpy)
* support chinese filename to uri filename while convert with '-p'
option
* zh_ord and zh_chr are bi-direction convertable now
* change keyword:
* '最大值' instead of '最大':'max'
* '最小值' instead of '最小':'min'
* '最大值' instead of '最大':'max'
* '最小值' instead of '最小':'min'
* '反 ' instead of '逆 ':'reverse',
*Features*
* add zhimport module to support chinese file name import, thanks
Jiahua Huang
* checked in experimental direct zhpy module import(disabled), thanks
Jiahua Huang
* add build-in sys module keyword plugin
* add pyzh and bi-directional translation tests
*Fixes*
* support multilines comments with triple single quote, thanks renhbo
*Project Updates*
* set svn:external to update ez_setup script automaticaly
* renhbo joined as the project member
*Contributors*
2007年10月12日 星期五
周蟒 1.1.1 版發佈
請使用
$ easy_install -U zhpy
命令下載或更新周蟒版本.
或前往網站查看更多關於周蟒的內容
http://code.google.com/p/zhpy/
主要是解決幾個 bug:
* 程式或直譯器中可以導入當前目錄下的模組
* 解決文件字串(docstring)解析不正常的問題
感謝 renhbo 提出這些問題, 大家才有更完整的周蟒可用.
1.1.1 (10/12/2007):
--------------------
code name: Dark Blue Moon
*Changes*
*Features*
*Fixes*
* Able to import modules in current directory with interpreter or
script, thanks renhbo
* fix python to zhpy command with any ini file in current directory,
thanks renhbo
* fix multilines comments translated incorrectly
*Project Updates*
* update release note
*Contributors*