Python with SSL
Serversman上で遊んでいたら、いきなりurllib2::openでエラー。
"urlopen error unknown url type: https"
この環境は標準のPythonが古すぎるので、buildして2.7.2を入れた経緯あり。
opensslは入ってるのに、なんでだ?と思っていたが、
下記情報で解決。
http://www.webtop.com.au/blog/compiling-python-with-ssl-support-fedora-10-2009020237
Find Command
find / -name
Python Code 04022012
>>> i=0
>>> seq = ['one', 'two', 'three']
>>> for element in seq:
seq[i] = '%d: %s' % (i, element)
i+=1
冗長性を排除
[(lambda i, el: '%d: %s' % (i, el))(i, el) for i, el in enumerate(seq)]