I am trying to invoke some methods defined in testlib.py, confused why there is additional 'None' in output? Thanks.
Code where I invoke testlib.py
print testlib.globalFoo()
f = testlib.Foo()
print f.getValue()
testlib.py
class Foo:
def __init__(self):
pass
def getValue(self):
print 'get value in class Foo'
def globalFoo():
print 'in global foo'
Output,
in global foo
None <= confusion here
get value in class Foo
None <= confusion here