Hello again,

the porting of the code is getting along nicely (thanks to the help in this 
ML), and I've got more questions on the way.

In particular, how is the case of attrs(object, value) handled? In Python a 
function can't be an expression, so this can pose an issue when porting code 
that uses it. I read on the rinterface docs that do_slots_assign could be 
used, but I'm not sure if it's the right way to go.

Likewise, I have a question on the *apply functions. Usually I *don't* use 
them (as I have equivalents in Python that are faster to use) but for certain 
specific objects they are required. As you can't really pass a Python function 
there, should I just use the "r" instance to generate a function and pass it 
like that? Example:

my_function = ro.r("my_function (x) <- do_something_there")
base.apply(data_structure, 1, my_function)

Or is there a better way?

Thanks!
-- 
Luca Beltrame, Ph.D.  - luca.beltr...@unifi.it
Post-doctoral research fellow - Duccio Cavalieri group
Department of Pharmacology, University of Firenze

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to