#expertpython エキスパートPythonプログラミング読書会04

エキスパートPythonプログラミングの読書会4回目 http://atnd.org/events/9067 です。
1
前へ 1 2 ・・ 6 次へ
Yuki Tamura / estie EM @isoparametric

We run Django 1.2.3 / Piston 0.2.3rc1 / Hg 1.6 / Python 2.7.0 / r3777:e0e26712932b | bitbucket01 #expertpython

2010-11-02 20:15:53
tomo🐧@learning @cocoatomo

#expertpython 2.4 のリファレンスによると、 「FunctionType ユーザー定義の関数またはlambdaの型です。」 「BuiltinFunctionType len() や sys.exit()のような組み込み関数の型です。」 らしい。

2010-11-02 20:16:07
tomo🐧@learning @cocoatomo

#expertpython データディスクリプタの概念ってどのバージョンから入った??

2010-11-02 20:17:03
Tetsuya Morimoto @t2y

bitbucket は Django 1.2.3 / Python 2.7.0 の構成らしい、フッタで分かるよ http://bit.ly/cRGxtj RT 実務で python 2.7 を使うのは危険かな? 大丈夫じゃないっすか #expertpython

2010-11-02 20:17:27
Tetsuya Morimoto @t2y

#expertpython RT @methane: @t2y bzr で lp: という機能がエラーになる>< bzr の次のバージョンで2.7対応予定。なので、 x.y.1 が出るくらいの時期までは待った方が良いかも。

2010-11-02 20:18:20
ゴリラ @haraheniku

#expertpython __getattr__と__getattribute__の違いは?

2010-11-02 20:18:57
Kyoh @kyoh3

dictの__getattr__(), __setattr__()をオーバーライドする例 #expertpython

2010-11-02 20:19:17
tomo🐧@learning @cocoatomo

#expertpython Jython 2.1 alpha 3 で __getattr__, __setattr__ をいじってごにょごにょした覚えが。

2010-11-02 20:19:27
tomo🐧@learning @cocoatomo

#expertpython そうそう、__getattr__ は __dict__ 検索に負けるんだった。

2010-11-02 20:20:58
tomo🐧@learning @cocoatomo

#expertpython __setattr__ の override でミスって無限ループになった! __setattr__ の中で a.b = 'hoge' とやって失敗した。

2010-11-02 20:22:27
Tetsuya Morimoto @t2y

その心意気がカッコ良い RT @isoparametric: だが、2.7で攻める #expertpython

2010-11-02 20:22:39
mori_dev @mori_dev

#expertpython "pythonで辞書に構造体っぽくアクセスするメモ — 清水川Web" - http://j.mp/b0LKam

2010-11-02 20:25:34
Tetsuya Morimoto @t2y

#expertpython / pythonで辞書に構造体っぽくアクセスするメモ — 清水川Web http://htn.to/Q1cE1v

2010-11-02 20:25:59
ゴリラ @haraheniku

wxPythonのサンプルとかだと古い方法で書いてる #expertpython

2010-11-02 20:28:21
tomo🐧@learning @cocoatomo

#expertpython __class__ が詐称されてる可能性もあるのか。。。

2010-11-02 20:30:48
Tetsuya Morimoto @t2y

super の呼び出しはださいと思うという意見がちらほら #expertpython

2010-11-02 20:31:38
tomo🐧@learning @cocoatomo

#expertpython こんなのもある。> Now Browsing: Py3k の super - methaneの日記 - http://tinyurl.com/36hs8cr

2010-11-02 20:32:22
Tetsuya Morimoto @t2y

RT @cocoatomo: #expertpython こんなのもある。> Now Browsing: Py3k の super - methaneの日記 - http://tinyurl.com/36hs8cr

2010-11-02 20:33:18
tomo🐧@learning @cocoatomo

#expertpython super は型。 >>> s = super(str, '') >>> s <super: <class 'str'>, <str object>> こんなんなった。

2010-11-02 20:33:54
にしかわ @ni_si_ka_wa

「ふえー」と思うことが多い。 #expertpython

2010-11-02 20:34:44
tomo🐧@learning @cocoatomo

java に慣れるとちょっとね〜。でも動的な言語だからしゃーないか。。。 RT @t2y: super の呼び出しはださいと思うという意見がちらほら #expertpython

2010-11-02 20:34:46
ゴリラ @haraheniku

super(self).says() か self.super.says() で書きたい。 #expertpython

2010-11-02 20:35:07
Tetsuya Morimoto @t2y

python の言語設計がなぜそうなったのかが書いてあっておもしろいよ The History of Python.jp http://bit.ly/c21clb #expertpython

2010-11-02 20:36:12
前へ 1 2 ・・ 6 次へ