rstudio / rstudio/reticulate

provide helper for invoking Python methods

Open
#765 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
1.8k
Forks
349
Avg merge
5h 13m
Merged PRs (30d)
4

Description

E.g. given an object x with method foo, it'd be nice if we could invoke the method with something like:

py_invoke(x, "foo", ...)

One could of course invoke it by name with x$foo(), but that's less useful when the method name is referenced by a variable.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading reticulate's existing Python method invocation path, especially the x$foo() interface, and compare how method names and arguments are handled. Done means providing a helper that accepts an object, a method name held in a variable, and invocation arguments, with behavior consistent with direct method calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, r
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.