Slumdog

Who would have thought that the Oscar goes to the Indian film Slumdog Millionaire this year? And yet Slumdog shines.

As most audience realized, the film is based on a novel written by Indian diplomat Vikas Swarup. I'm not making a judgment about the writing of a diplomat – far from it – but rather noting the undiplomatic manner Jamal Malik answered the interrogation. Picture Jamal at the police station answering the accusation of cheating in order to win two million rupees - by a former street child with little education.

After

What list methods don't make sense for heterogeneous lists

If one is going to use lists for heterogeneous data (per yesterday'sentry ), it makes sense to ask what list methods don'tmake sense any more. Opinions will probably differ, but here is mytake on it.

First, I think that we can skip all methods that are common betweentuples and lists; if tuples have them, they are presumably consideredfine for heterogeneous data. Looking at what remains, I see:

  • .sort() clearly makes no sense; there is no real

Filmfare 印度電影觀眾獎

Filmfare Awards ( 印度電影觀眾獎) 印度影壇最歷史悠久的電影獎項, 有 印度奧斯卡 之稱 (即《 Om Shanti Om 》中SRK出席的電影頒獎禮) . 除了 Filmfare Awards, 還有 National Film Awards (印度國家電影獎 ) 分庭抗禮. 後者宏觀印度各地區的電影成績, 再仔細評審
Continue reading...

仲有一個篋丫

各位乘客:
機艙服務員於左邊第58行走道附近,拾獲一個啡色行李篋,遺失以上物品o既乘客,請立即與機艙服務人員聯絡。

多謝各位留意。




原來已經加印了!!!!!

感謝各位支持,無以為報,唯有以第二版相許。

其實,我

Python's theoretically missing core data type

In theory inPython, tuples are for heterogeneous data and lists are for homogeneousdata. Except, well, tuples and lists have 'side effects': tuplesare read-only and lists are not. Which means that if you take therestriction on lists seriously, you do not have a core data type forordered writeable heterogeneous data (and maybe also one for read-onlyhomogeneous data).

(While this is a theory that's probably more honored in the breach thanin practice, I think that


閱目港女

袁彌明閱目港女

08/03/2009
文: Rachel
Continue reading...

Lady First 專欄 (35 - 36)

上床


我們一生之中,有許多時間都在床上渡過。

百無聊賴在床上輾轉啦,靠在枕頭吃零食弄得一床都是薯片碎啦,看電視啦,玩電腦啦,溫書啦,看雜誌啦… … 當然,還有做愛。

但最重要的是,生命中三分之一的時間 (我應該沒

哲學家足球戰馬克思後備80年代西德隊



inside到無比的joke。真係超正。理論足球青年用心聽旁述做中譯吧!

政論人心《Frost/Nixon》


由Frank Langella的一句「 I'm saying that when the President does it, that means it's not illegal! 」, Michael Sheen錯愕回應「 ...I'm sorry? 」開始, 已經對《Frost/Nixon》(驚世真言) 很有興趣. 自己愛鑽研歷史人物的來龍去脈, 雖然未看過珠玉在前的《All the President 's Man驚天
Continue reading...

What past problems of mine the collections module solves

The somewhat new collections module has a number of usefulthings that obsolete several of the things I've done by hand in thepast. For my own reference if nothing else, here's more or less whatits solutions obsolete and when each solution was introduced.

  • defaultdict obsoletes my use of dict.setdefault() . It was introduced in Python 2.5.

  • namedtuple obsoletes some but not all of my various forms of structures in Python. It wasintroduced in Python 2.6.

The reason namedtuple doesn