On Mon, 2008-10-20 at 18:34 +0200, Robert Nuske wrote: > Hi there, > > the documentation of rpy2 claims that the delegating attribute (.r) can be > used with a whole number of operators, the power operator (**) being one of > them.
Deceptive claim. I must have been distracted while implementing those functions (and forget __pow__). > All arithmetic operators but the power operator work for me. I have no clue > what I am doing wrong with regard to the power operator. Nothing wrong. Bug fixed in SVN. Thanks, L. > This code > import rpy2.robjects as robjects > x = robjects.r.seq(1, 10) > print x.r ** 1.6166 > > produces > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > TypeError: unsupported operand type(s) for ** or pow(): 'RVectorDelegator' > and 'float' > > rpy_nextgen revision 660 and Python 2.5.2 on a debian testing system. > > > Any help is much appreciated, > Robert > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list