Support python(pre|ap)pend on static methods in classic mode

Adding a test that covers this case to the python_append test-suite
Note: staticmethod function has been available since Python 2.2
This commit is contained in:
Alec Cooper 2016-01-25 12:28:36 -05:00
commit b45164e098
3 changed files with 11 additions and 3 deletions

View file

@ -12,6 +12,9 @@ def grabpath():
return funcpath
def grabstaticpath():
return staticfuncpath
def clearstaticpath():
global staticfuncpath
staticfuncpath = None
%}
%pythonappend Test::func %{