Tuples -> Function Params?

Philip Swartzleonard starx at pacbell.net
Tue Dec 4 03:37:33 EST 2001


    	Just a quick question, right now i'm doing this:

self.color = afloat,bfloat,cfloat
.
. (change functions)
.
a,b,c = self.color
glColor3f(a,b,c) 

    	[actual function dosen't mater except that it isn't something i can 
just change]

    	Ok, the question is, is there a way to do this where i don't unpack 
the tuple and pass sepearte arugments? This would be most convienent. 
Function(tuple) doesn't work... and i couldn't seem to find any other info 
in the docs...

-- 
Philip Sw "Starweaver" [rasx] :: <nothing>



More information about the Python-list mailing list