Why del has to be a Python builtin

A posting today to the LiveJournal python_dev community wound up sort of askingwhy del has to be a Python builtin instead of a method. At first Ithought this had a nice simple answer, but the more I thought about itthe less obvious it became, and by the time I'd worked out a satisfyinganswer I'd had to really think about how Python fits together.

The short summary is that del needs to be a builtin because Python'sobject model is based on references and namespaces


繁簡馬後炮

最近幾個 Blog 都指出,聯合國只使用簡體字這件事,其實老早就發生了,算是為網上的繁簡風波告了一個段落,現在讓我來馬後炮一下。

在最初,我自己對於這個題目,沒有太大的感覺。首先,繁簡誰優誰劣,其實高下立見,不用


一隻興奮的夜枭

以前在學生報出版又出版,出版之後總是心如止水,像計份數除法把一個數劃去那樣,了結而已。《四十年》出版時也有期待,衝回中大去看那些書,但記得在等的時候只是想,快點完吧。到自己出書時,終於覺得緊張,類似是

網摘的引文

本來想整理一下最近「繁簡風波」的討論,寫寫個馬後炮,所以瀏覽一下在各個 Blog 所貼有關此事的討論。在看到 Blog-you 的 Blog 裏一篇 博客文摘 – 化「繁」為「簡」? 的回應,才知道發生了一件有關「引用」的小風波。

在此篇文摘裏


庸俗紅樓

光管壞什麼都不想做,亂update吧。這篇文章是年初就想寫的。

三年級開始看《紅樓夢》,應該是鄙人的怪異經歷裡,最登得大雅之堂的一項(其餘如誤闖沙頭角無禁區紙被警車解回之類的,還是待我再堅強一點時才說吧)。那時看

握緊與鬆開之間


艾尼斯:

還在想念傑克嗎?你這個膽小的契弟,憑甚麼可以傷害這麼多人呢?

看到你和傑克在斷背山上牧羊,天高地闊,只有你們兩個人和那數之不盡的羊群,你們曖昧地行進,我明白你倆的苦悶,了解你這個粗人和傑克這個牛

An obnoxious RSS feed trick

I suppose it was inevitable, but the marketers have definitely arrived;the otherwise excellent In The Pipeline 'ssyndication feed now has banner ads. Animated banner ads atthat. I find this especially irritating because the feed is already a partial text feed , which means that I'm goingto visit the website anyways (because I have to). Adding animatedbanner ads on top is just adding insult to injury.

I honestly don't know why marketers still keep doing this. Everyonewith three brain cells to


20060412網摘 – Google中文名:谷歌

Google

New Services


Something to remember about networking restarts

I helped a coworker debug an interesting Linux problem today, and inthe process wound up reinforcing something that I already more or lessknew but hadn't really thought about for a while. Namely:

/etc/rc.d/init.d/network restart doesn't unload and reloadthe kernel modules for your network devices.

A networking restart will bring down and then restart all of yourinterfaces, reset parameters and so on, but the one thing it doesn't reset is kernel modules. They


blog102?

有讀者問我可不可以寫一些 Blog 教學,不是怎樣申請 BSP 開戶口那種,而是比較進階的技術層面的東西。嗯,即是甚麼呢? 我想應該有以下幾項:

  • RSS
  • Permalink
  • Trackback
  • Tag

再配以一些 Blogger 常用的 Web2.0 服務介紹

  • Technorati
  • delicious
  • flickr
  • 豆瓣
  • Wikipedia

再介紹一下一些技巧,如