How you access an object can be important in Python

One of the less than obvious things about Python is that it can mattera lot just how you access an object, and not just for performancereasons. Accessing the same object through two different names can havedrastically different results under some circumstances, as yesterday'sentry about frame.f_locals shows.

(This is especially the case when resolving one of the names involvesa C module (instead of just a Python one). C modules generally need'getter' functions to translate their C-level data


十年前後

香港這十年到底有何變化?

這是一個容易回答,亦不容易回答的問題。容易回答,是因為我們大可以拋出香港大大小小的新聞舊聞,例如沙士事件、興建迪士尼、自由行出沒、80後崛起等等;亦能夠引用別人對香港的評論,好

燕尾蝶("Swallowtail Butterfly") ----- 幼虫結蛹變蝶,也正是導演的蛻變期!
























片名 : 燕尾蝶 (1996)
導演 : 岩井俊二
主演 : 伊藤步, Chara, 江口洋介, 三上博史, 許志安, 渡部篤郎, 山口智子
片長 : 148mins
音樂:小林武史
主題曲: Swallowtail Butterfly ~あいのうた~----- Yen Town Band(Vocal: Chara)

1. 原來這已是十四
Continue reading...

大娛樂家-(第94集)


2010-04-28
主持人: 蕭定一, 袁彌明
主題: 大娛樂家-(第94集)
Continue reading...

iPad Apps for Which I am Waiting

My credit card is quite ready to dump some money on the following, when they're released:

  • Coda for iPad: We need a good IDE for the iPad, and Coda screams iPad, already; I would be willing to heft over a pretty penny to have Coda on my iPad... even without terminal support, or the useless CSS editor.
  • Podcasting Suite: Something like GarageBand lite; just enough to record multiple tracks (maybe 2-4, with the ability to split right and left channels from

Review of Apple's iPad Camera Connection Kit Posted...

Read on: Review of Apple's iPad Camera Connection Kit .


Review: iPad Camera Connection Kit

Jeff's Rating: 5 /5

tl;dr : The iPad Camera Connection Kit is an excellent accessory for the iPad, allowing users to import photos from most any camera (RAW or JPEG), and connect to some other helpful devices via USB.

If you haven't already, check out my iPad review (from the first few days of use, and including some important updates).

iPad Camera Connection Kit

After a few weeks' wait, people (including me) have started receiving their iPad Camera Connection kits . This


網絡的故事

故事是這樣的:最初,網絡是一片混沌的文件海,各自連結各自組織。

人們說:來一點秩序吧!所以就有了搜尋引擎:分類的、排名的,各有特色。後來,Google 發明了 Pagerank,可在茫茫網海裏輕易找到有用和相關的資料,就此一統文件


Altering a Python function's local variables with a trace function

Some time ago I wrote that there was no way tochange a function's local variables from outside it (well, specificallytheir name bindings ). As it turns out, I'm wrong;there is one way to do it by going in the back door, although it's nota useful way.

There is specific code in CPython that allows a trace function to completelyalter a function's local variables and even function arguments; this (C)code specifically reloads the internal interpreter version of


我是個好胡思亂想的人,早幾天寫Jack Kevorkian坐牢的事時,竟想像自己坐牢;通常我的想像都很形象化,那獨困牢房的景象,已教我不寒而慄。

失去自由的滋味一定很難受,年輕時坐三五年牢可能不那麼磨蝕一個人的心志,但終身監禁