7stud <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Can someone show me how to manually implement staticmethod()?  Here is

Simplest way:

class smethod(object):
  def __init__(self, f): self.f=f
  def __call__(self, *a, **k): return self.f(*a, **k)


Alex
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to