How to get as much of your program byte-compiled as possible

The CPython interpreter doesn't run Python code directly, but first compiles it to bytecode . Because this parsingand compiling steps are somewhat time-consuming, CPython optimizesthings by saving the compiled bytecodes into .pyc files (or .pyo files if you used the -O switch to python ), and trying to usethem when possible.This speed increase doesn't necessarily matter all that much for aprogram that runs a long time, but it does matter for typical utilityprograms, which only run for a


try our breast

唔得忍唔住啦太好笑啦,一定要打幾隻字~~~

" er... ... er... ... er... ... we will try our breast... ... "

我笑到抽筋~~~


.
.
.
.
1997年香港中文大學政治與行政學系畢業
2003年香港中文大學法律

不在香港,未能投票。抱歉,各位港島區泛民候選議員。


又到“我不是股神系列”時間

1)HSI終於跌穿20,000,還未下試最低位。預料美國還有壞消息,最終令恒指 見18,000水平。

2)一到18字頭可以入大紅籌和

無言的澳門

默默吞忍四百年的苦果在十二月某天被吐出來
一種接近瘋狂的笑意令咀巴疲倦卻擠不出笑聲
無言

一道自以為吐氣揚眉的苦澀很和諧的纏繞著某些人
謊言說上一百次即為真相
(澳門 就是與別不同)
同一句說話為什麼要說上一百次

兩個小欄,我不是主力,但介紹一下。

1. 御宅戲寶
是評論game的小欄,主力是紫草和杜振豪,我只是撮合一下他們。今期評的是facebook的古惑仔online。

2. 滿天星斗泡泡茶
作者是常春藤與鼠尾草。今期題目是立會星盤,唔好講笑,個盤

Why your main program should be importable

When I first started coding in Python, I didn't know what I was doing.So I structured my Python programs the way I would write Bourne shellscripts or Perl programs, writing functions as necessary and usefulbut otherwise putting all of the logic and code in the program's fileoutside of functions (in what I now call 'module scope').

This is a perfectly rational structure for Python programs, and evenworks; my programs ran fine and were perfectly functional. But it wasalso a


轉載自明報副刊
安裕周記﹕勇敢的抉擇

Barcamp HK 2008

上年沒有去的 BarcampHK ,今年終於有去了,可是星期六上午要工作,下午才能到。我聽了:

Open Source + Microsoft

剛剛到達,此時已是 Q&A 時間,所以聽不出所以然來… 望各位補完…

FCKE ditor

這是一個通常會 embed 到 blog、CMS 等等的 Rich Text Editor,因為聽了十分鐘


勢必過氣小混混《處刑的房間》


處刑的房間 》(1956) 不是 市川崑 的 最佳作品, 卻是「太陽族電影」的鼻祖. 同類型題材的電影之中, 《處刑的房間》名氣不及《太陽的季節》(1956) 和《瘋狂的果實》(1956) , 卻與大島渚於「松竹新浪潮」

大家都來寫

身邊的文化小資朋友不大談投票。或者只建議人去投票,彷彿已經算是盡了公民責任。當暗地裡有以 單程證利誘投票 這樣令人髮指的事發生,為何我們明地裡不可以像球迷講波、書迷談書、師奶格價一樣,標明自己的投票意向?