Return statement question
Thomas Lane
tom at parlant.com
Tue Mar 14 17:25:03 EST 2000
More information about the Python-list mailing list
Tue Mar 14 17:25:03 EST 2000
- Previous message (by thread): Tkinter - how to catch button clicks when app is busy?
- Next message (by thread): Return statement question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 ?
>
- Previous message (by thread): Tkinter - how to catch button clicks when app is busy?
- Next message (by thread): Return statement question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list