Oct-03-2021, 05:03 PM
def common_func(text): print(text) class AClass: def multiple_method1(salf): common_func("multiple_method1") def multiple_method2(salf): common_func("multiple_method2")
a function common to methods of a class
|
|
Messages In This Thread |
a function common to methods of a class - by Skaperen - Oct-03-2021, 04:56 PM
RE: a function common to methods of a class - by Yoriz - Oct-03-2021, 05:03 PM
RE: a function common to methods of a class - by Skaperen - Oct-03-2021, 06:31 PM
RE: a function common to methods of a class - by Yoriz - Oct-03-2021, 07:48 PM
RE: a function common to methods of a class - by bowlofred - Oct-03-2021, 07:30 PM
RE: a function common to methods of a class - by Skaperen - Oct-03-2021, 11:13 PM
RE: a function common to methods of a class - by snippsat - Oct-04-2021, 12:44 AM
RE: a function common to methods of a class - by Skaperen - Oct-04-2021, 07:07 PM
|