passing arguments to a function - do I need type ?

Paul McGuire ptmcg at austin.rr.com
Sun Jul 10 11:29:24 EDT 2005


Is getCenter a function?  If so, you need to invoke distance using:
    dist = self.distance( n.getCenter(), newElement )

Of course, that is assuming that newElement is a local variable of type
list/tuple/etc.

-- Paul




More information about the Python-list mailing list