Doesn't know what it wants

John Machin sjmachin at lexicon.net
Sat Jan 26 07:53:16 CET 2008


On Jan 26, 5:32 pm, Jeroen Ruigrok van der Werven <asmo... at in-
nomine.org> wrote:
> -On [20080126 06:26], Tim Rau (bladedpeng... at gmail.com) wrote:
>
> >Line 147 reads:
> >        moi = cp.cpMomentForCircle(self.mass, .2, 0, vec2d((0,0)))
>
> I think it expects something like:
>
> # badly named variable, pick something better depending on context
> temp = vec2d(0, 0)
> cp.cpMomentForCircle(self.mass, .2, 0, temp)

That *cannot* give a different result in Python. The called function
will be presented with *exactly* the same object as the OP's code
does.



More information about the Python-list mailing list