Skip to content

Extend PyRDF.initialize to "string code" and functions from imported modules #17

@JavierCVilla

Description

@JavierCVilla

Currently PyRDF.include only supports python callable of this shape:

def f(a, b, c):
     import ROOT
     ROOT.myCppFunction(a, b, c)

PyRDF.initialize(f, a, b, c)

It would be useful to support any of the following calls:

PyRDF.initialize(ROOT.myCppFunction, a, b, c)
PyRDF.initialize("myCppFunction", a, b, c)
PyRDF.initialize(f, a, b, c) 

This way the code would be cleaner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions