[EMAIL PROTECTED] wrote: >>>>def reTest(bool): > > ... result = [] > ... if not bool: > ... reTest(True) > ... else: > ... print "YAHHH" > ... result = ["should be the only thing returned"] > ... print "printing result: " > ... print result > ... return result > ... > >>>>reTest(False)
You're both printing the result and returning it. The interpreter just happens to show both printed and returned variables. An example of a shown return variable: >>>def returnb(): ... return 'b' ... >>>returnb() 'b' Hope that helps, Brian -- What if the Universe were a chrooted environment with everything symlinked from the host? -- http://mail.python.org/mailman/listinfo/python-list