An annoyance in Python's attribute access rules

When looking up names on objects, I really wishthat Python had a special attribute accessor for looking upattributes it was about to call, instead of only running them throughthe regular attribute lookup chain.

While this uniformity probably has little effects on mostcode, it complicates the life of things such as proxy objects thattrace and monitor access to objects, which sometimes want to behavedifferently for ' var = you.foo ' than for ' var = you.foo() '. You canfake this by returning


笑傲江湖


過去一個星期,我又在讀 笑傲江湖 .

這本小說,已讀了超過十次,每次重讀,都可以投入,都覺得好看,都有得著,真是百看不厭.

年輕時讀此書,喜歡其故事引人入勝,人物精彩.成年之後再讀,喜歡小說家對政治的影射,還

禮物關係

文明單位:禮物
嘉賓:許寶強

禮物是經濟與政治的形式,但用傷他悶透的文學語言來說,我總覺得《禮物》裡面滲滿了自尊心。談到禮物其實是關係的確認、受禮者其實沒有拒絕禮物的自由時,我突然明白我為什麼曾經那麼生氣

臨淵羨魚


看見《香港電影》第三期有兩三篇《破事兒》的評論,可見大家人同此心,這種看得輕易的電影寫來也輕易,我之前就寫了一篇,登在《am730》那個小專欄裡,非常舒服。但話回來,見別人能夠好好的追電影寫影評,心底羨

One reason I like Python

One reason that I like Python is that I find it what I call a very'computer science' language and I am a product of a CS environment. Bythis I mean that Python is mostly built from a small number of coreconcepts which are uniformly expanded through the language, and thosecore concepts are by and large familiar to me from my CS background.

(It also has a quite traditional Algol-style syntax, apart from thewhitespace issue.)

Since its core concepts click for me, I find


Classic crontab syntax mistakes

The crontab file format is unfortunately prone to mistakes, since itrequires you to carefully count words and, for bonus fun, requires adifferent number of words in different contexts. There are three classiccrontab syntax mistakes that I have seen (and sometimes committed):

  • adding a username when it's not necessary

    This generally results in mail from cron complaining that it cannotrun ' username '.

  • failing to specify a username when it's necessary

    This results in mail about 'no such user program ', assuming that


神探伽俐略 – 物理學天才智破連環奇案?

如果換了是TVB,搞這類警匪劇,大概就只會把CSI等一類的外國劇的模式或甚至乎是內容,來個案件重演(即係話橋唔該借o黎用下),便交功課了事。

反正,他們總覺得香港觀眾家中是沒有裝Now或從來不會看外國劇的,抄完再


天下無敵與無能為力

天下無敵與無能為力

幾個同事聚集在我的房間,一邊東拉西扯說說是非,一邊收看A股的網上路演。老實說,這種在網上chat room回答公眾提問的玩意,我還以為只會在tvb.com的電視劇討論區才會出現!中國是個奇怪的國家,定出了

The funding capture problem

Here is a cynical truth:

No matter what they say, organizations eventually wind up workingfor the people who give them money.

This is a natural result of the fact that very few people everdeliberately try to put themselves out of a job. Organizations aredriven to perpetuate themselves, which requires that money keep comingin, which requires that the funding sources be kept happy, and beforeyou know it the organization's interests have become aligned with thoseof the people who give it money.

This sounds unexceptional,


昨夜我在Prive

明明鼻水長流腰傷作痛,喝下它就會好。

Moet是最好的藥。

--------------------------------------

"I think I love you, I mean it."

Huh?

最寂寞的時候都未曾相信,何況現在 ?

我認識你的時