On 12/21/2012 12:23 AM, iMath wrote:
Pass and return Are these two functions the same ?def test(): returndef test():pass
From the point of style, of course, the latter is much better because that's the idiomatic way to define a no-op function. With a return, it looks like you might have forgotten to add the value to return or deleted it by mistake. -m -- Lark's Tongue Guide to Python: http://lightbird.net/larks/ -- http://mail.python.org/mailman/listinfo/python-list