- 360 名前:デフォルトの名無しさん mailto:sage [2008/06/28(土) 10:56:18 ]
- >>> def apply(func,*args): return func.__call__(*args) # これだと駄目みたい…
... >>> for e in apply(zip, [(1,2),(3,4)]): ... print(e) ... ((1, 2),) ((3, 4),) >>> apply(zip, [(1,2),(3,4)]) <zip object at 0x01582648> py3k で廃止されたapplyを復活させるにはどうしたら 良いですか。
|

|