#1 classmethod support

open
nobody
None
5
2009-07-20
2009-07-20
ill-665
No

Python knows two kinds of static methods.
1. the classical static methods defined like:
def foo ():
....
foo = staticmethod(foo)

2. class methods with a reference to the class object as first parameter looking like:
def bar (cls)
...
bar = classmethod (bar)

PyUML should support the different kinds and create a classmethod call, if a static method has "cls" as first parameter

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks