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:
parent
d91064aa6a
commit
b45164e098
3 changed files with 11 additions and 3 deletions
|
|
@ -12,6 +12,9 @@ def grabpath():
|
|||
return funcpath
|
||||
def grabstaticpath():
|
||||
return staticfuncpath
|
||||
def clearstaticpath():
|
||||
global staticfuncpath
|
||||
staticfuncpath = None
|
||||
%}
|
||||
|
||||
%pythonappend Test::func %{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue