[IronPython] Static methods

Michael Foord fuzzyman at voidspace.org.uk
Mon Sep 25 18:12:30 CEST 2006


David Anton wrote:
> Which of the following is considered more acceptable in the Python/IronPython
> community?
>
> Prefacing the method with:
> @staticmethod
>
> or following the method with:
> MyMethod = staticmethod(MyMethod)
>   

Since Python 2.4, the decorator is nicer. :-)

Michael Foord
http://www.voidspace.org.uk/python/index.shtml

>
>   




More information about the Ironpython-users mailing list