[Rpython-commits] Bug in python.method.call

Rörd Hinrichsen roerd.hinrichsen at langtec.de
Fri Oct 2 17:13:26 CEST 2015


Hi,

I'm writing my bug report to this mailing list since I couldn't find a
more fitting channel for this R package.

Basically, the function python.method.call is almost completely broken.
It ignores all arguments for the method call and always calls the
method without any arguments, as is obvious from its source code:

python.method.call <- function( py.object, py.method, ... ){
    python.call( paste( py.object, py.method, sep = "." ) )
}

You can see that its "..." parameter is not used in the implementation.

The example from the documentation ( python.method.call( "a", "split",
" " ) ) only works because splitting on whitespace is the default
behaviour for the split method.

Regards
Rörd Hinrichsen



More information about the Rpython-commits mailing list