opengeometry at yahoo.ca
Fri Jul 13 14:12:29 EDT 2001
On Fri, Jul 13, 2001 at 10:50:57AM -0700, Curtis Jensen wrote:
> apply( self.ren.Elements, cmd, additional_kwds )
> def Elements( self, at, deformed, iact, normal, xi, nelist, nodes,
> elements, *args, **kwds ):
> However, if I replace the apply command with:
> self.ren.Elements( cmd, cmd, cmd, cmd,
> cmd, cmd, additional_kwds )
> It works fine. I can't figure why the apply line doesn't work. There
apply( self.ren.Elements, (self, cmd), additional_kwds )
There is subtle difference between calling Elements() as regular
function and as class method within an object, namely 'self' argument.
William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>
8 CPUs cluster, (Slackware) Linux, Python, LaTeX, Vim, Mutt, Sc.
More information about the Python-list