Python Example Code
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ˅
from enum import Enum
# ˄
class Foo(Enum):
RED = 1
GREEN = 2
BLUE = 3
# ˅
# ˄
Python Example Code
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ˅
# ˄
class Foo(object):
# ˅
# ˄
def open(self, filename, encoding="utf-8"):
# ˅
pass
# ˄
# ˅
# ˄
# ˅
# ˄
Using TaggedValue
Python Example Code
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ˅
# ˄
class Foo(object):
# ˅
# ˄
@tack
@parallel
def my_func(self):
# ˅
pass
# ˄
# ˅
# ˄
# ˅
# ˄
Using Stereotype
Python Example Code
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ˅
# ˄
class Foo(object):
# ˅
# ˄
@tack
@parallel
def my_func(self):
# ˅
pass
# ˄
# ˅
# ˄
# ˅
# ˄