Changes between Version 4 and Version 5 of Python


Ignore:
Timestamp:
06/16/06 09:32:56 (18 years ago)
Author:
atzm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python

    v4 v5  
    4646 
    4747 * キモは zip(*list) 
     48 
     49== staticmethod == 
     50{{{ 
     51#!python 
     52>>> class Hoge: 
     53...     def hoge(*args): 
     54...         print ', '.join([str(i) for i in args]) 
     55...     hoge = staticmethod(hoge) 
     56... 
     57>>> Hoge.hoge(1, '2', 3.3, None, False, Hoge) 
     581, 2, 3.3, None, False, __main__.Hoge 
     59}}}