Changes between Version 12 and Version 13 of Python


Ignore:
Timestamp:
01/03/08 16:37:56 (16 years ago)
Author:
atzm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python

    v12 v13  
    6363 
    6464== staticmethod == 
     65 * デコレータ関数なので以下のように使う 
     66{{{ 
     67#!python 
     68>>> class Hoge: 
     69...     @staticmethod 
     70...     def hoge(*args): 
     71...             print ', '.join([str(i) for i in args]) 
     72...  
     73>>> Hoge.hoge(1, '2', 3.3, None, False, Hoge) 
     741, 2, 3.3, None, False, __main__.Hoge 
     75}}} 
     76 * 別に以下のようにしても問題はない 
    6577{{{ 
    6678#!python