An obvious way to do bulk initialization of dictionaries

Every so often in my Python programs I need to initialize adictionary with a whole bunch of values (and then pass it offsomewhere). For a long time, my usual approach to this was:

d = {}d['a'] = b.whatd['c'] = foo(d)....

Recently I stumbled over the better way to do this, which isembarrassingly obvious in retrospect:

d = {      'a': b.what,      'c

紀行


行進地獄之後我前所未有地能夠接受自己的醜怪,在這個意義上它就是天堂。深淵就是上方。

於是我竟然覺得德里達好看起來,猶勝齊澤克。

快慰、澄明的漩渦,連淚都咻一聲蒸發的顛倒瞬間,總是過長或過短。地獄裡處處是奔

七日倒數


我帶著一般常見的東西去旅行:潰爛的臉、彎曲的頸椎、柴可夫斯基、red bull、鐵觀音、咖啡、vodka、巧克力——我在過去兩星期內吃下的巧克力高於過去三年總和於是在愛情的複影和幻像裡與腦分泌嬉戲對著空氣還擊問題。

朋友們

巴士阿叔之通識教育

有學校為怕學生駁嘴,竟然禁止學生講「有壓力」、「未解決」,其實巴士阿叔事件,是很好的通識課內容,何不借此機會,讓學生思考一下事件背後反映了什麼?

好了,各位同學,請試答以下問題:

(一) 阿叔篇

  • 試分析阿叔一

Weekly spam summary on May 27th, 2006

This week, we:

  • got 11,513 messages from 227 different IP addresses.
  • handled 18,277 sessions from 912 different IP addresses.
  • received 133,583 connections from at least 42,540 different IPaddresses.
  • hit a highwater of 8 connections being checked at once.

This is about the same as last week . Tuesday,Wednesday, and Thursday were the busiest days this week for connections;I suppose that's not


電台淺談網摘

Jansen 的邀請,今天晚上到了港台第二台的「 e個世界 」節目的「log 你個 blog」環節,談談在下的 blog 和有關網摘的事。

今次的氣氛比較輕鬆,以閒談的形式去談我常常會寫的網摘是甚麼,有甚麼用處和一些網摘的問題等等。今次沒有


Today's dilemma: wiki page or blog entry?

As time goes by, there's an increasing amount of stuff I want to writedown. One of the things that stalls me out on this (apart from the sheereffort of writing) is the question of where and how I should put them;in particular, should I make a wiki page or write a blog entry?

In theory this shouldn't come up; WanderingThoughts is part ofa hybrid wiki-blog, which I've extolled the virtues of before . In practice this is an illusion


異議聲音 二零零六

異議聲音二零零六
(天安門迴響)

一九八九 六四
想超越愛國
要真正民主
做人的運動
愛恨哀怨 迴響不絕
二零零六六四
要再上路
愛人同志
到廣場去
死生相隨


一個公開呼籲

接收到此訊息的朋友 請帶同自己的發聲、演展、播放器具 ,於六

我需要的悲哀和自負


周六又要上北京
已經沒有什麼感覺了

其實到達目的地之後工作就跟著出現
喜歡不喜歡都不是我可以控制的了
出差最難過的反而是困在飛機上的幾小時
不管座位如何
飛機上的空氣也是令人不舒服的
總之就是坐立不安
這可能是我個人

A message you do not want to see from your backup software

We just got the following message today from a well regarded commercialbackup system that costs a lot of money:

* host:/filesystem save: path length of 1025 too long, directorynot saved: /filesystem/long/dir/path/...

Path name length limitations; just what I like to find out about inmy backup software. (I suspect that the limit is 1024 characters andthat the path is not exactly 1025 characters, it's