[Tutor] problem in ploting cylinders with different colour.
Steven D'Aprano
steve at pearwood.info
Tue Feb 14 15:43:47 CET 2012
Debashish Saha wrote:
> TypeError: grid_source() takes exactly 3 arguments (4 given)
Is this error not clear enough? The function expects 3 arguments, you have
given it 4. You need to give one fewer.
The only tricky thing to remember is that when you have a method, one argument
is the automatically provided "self" argument:
function(a, b, c, d) # This is FOUR arguments.
instance.method(a, b, c) # So is this, because there is also a "self" arg.
--
Steven
More information about the Tutor
mailing list