Return statement question

Thomas Lane tom at parlant.com
Tue Mar 14 17:25:03 EST 2000


Are you sure func3 was never executed? I cut your code (modified to print stuff
to the screen) and it definitely ran func3.

Here's the code I ran:

def func1():
    print 'func1'

def func2():
    print 'func2'
    return 1

def func3(sv):
    print 'func3'

func1()
val= func2()
func3(val)

The output (as expected) was:

func1
func2
func3

-Tom

Gregoire Welraeds wrote:
> 
> 
> In this cas func3 is never executed...
> 
> why ?
>



More information about the Python-list mailing list