2Qs
SuperHik
junkytownMAKNI at gmail.com
Sat Jun 24 15:24:33 EDT 2006
1st question:
If a make an exe with i.e. py2exe, can I get any kind of error/bug
report from the exe file saved into a file error.log and how?
2nd question:
is there a better way to do this:
<code>
def tritup(x,y,z):
#here is a while loop giving 3 results, i.e. r1,r2,r3
return r1,r2,r3
#I want to put sum of r1,r2,r3 as a condition in if statement
#so I created a function to do this, but I can't escape a feeling
#there is a more elegant solution, especially in python ;=)
def summm(a,b,c):
return a+b+c
if x>10 and y>10 and z>10 and summ(tritup(x,y,z)): print "OK"
More information about the Python-list
mailing list