python method chain code example Example: class chain methods python c = foo().line().my_print().bar().my_print() assert c.kind == 'bar'