Create staticmethod from an existing method outside of the class? ("unbound method" error)
<p>How can you make a class method static after the class is defined?  In other words, why does the third case fail? </p>

<pre>

&#62;&#62;&#62; class b:
...  @staticmethod
...  def foo():
...   pass
...
&#62;&#62;&#62; b.foo()
&#62;&#62;&#62; class c:
...  def foo():
...   pass
...  foo = staticmethod( foo )
...
&#62;&#62;&#62; c.foo()
&#62;&#62;&#62; class d:
...  def foo():
...   pass
...
&#62;&#62;&#62; d.foo = staticmethod( d.foo )
&#62;&#62;&#62; d.foo()
Traceback (most recent call last):
  File "&#60;stdin&#62;", line 1, in &#60;module&#62;
TypeError: unbound method foo() must be called with d instance as first argument (got nothing instead)
</pre>
