Menu

#2 support for decorators

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

Python supports a decorator notation since at least version 2.5.
With this feature, Python allows to create static methods in the following ways:

class TestClass (object):
@staticmethod
def foo ():
....

@classmethod
def bar (cls):
....

Maybe there can be included a settings option, that allows to tell PyUML, which way to use for static method definitions.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.