Revisions
-
rtomaszewski revised this gist
Dec 20, 2012 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ def myfunc(message): """ This is external function -
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,46 @@ def myfunc(message): """ This is external function @param message: this is string that is going to be printed @return: none """ print("myfunc: %s" % message) class MyClass: """ My class that implement 2 demo functions. """ def __init__(self, s): self.s=s def f1(self, message=None): """ The function prints a string on stdout @param message: a string """ print("main:f1: %s" % message) def f2(self, message=None): """ The function prints a string on stdout @param message: a string @return: a value zero """ print("main:f2: %s" % message) return 0 def main(self): self.f1(self.s) self.f2(self.s) myfunc(self.s) if __name__ == '__main__': MyClass('epydoc demo').main()