apply problems

William Park opengeometry at yahoo.ca
Sat Jul 14 01:04:21 EDT 2001


On Fri, Jul 13, 2001 at 04:59:19PM -0700, Curtis Jensen wrote:
> I thought about that.  But in the test examples below, you can see that
> you'll that you don't have to pass "self" with apply.  In fact if you
> do, you'll end up with too many parameters.  Also, symanticly, I think 
> "apply( self.ren.Elements, (self, cmd[1]), additional_kwds )" will only
> pass two arguments "self" and "cmd[1]" as apposed to sending "self" and
> all the items in "cmd[1]" as individual argument.  You'd need to put
> "self" at the beginning of cmd[1], or make a new tuple to pass in.  But
> I know what you mean.

Sorry, you're right... too many emails. ;-)

> 
> In any case, my problem went away.  I'm not exactly sure why.  It
> probably had to do with unsafe dynamic binding or something like that.
> :)

-- 
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 mailing list