Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

class chain methods python

a = foo()
a.line()
a.my_print()
a.bar()
a.my_print()

assert a.kind == 'bar'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #class #chain #methods #python
ADD COMMENT
Topic
Name
6+1 =