Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[code2fn] Support for decorators (Python) #862

Open
myedibleenso opened this issue Mar 22, 2024 · 1 comment
Open

[code2fn] Support for decorators (Python) #862

myedibleenso opened this issue Mar 22, 2024 · 1 comment
Assignees

Comments

@myedibleenso
Copy link
Collaborator

No description provided.

@cl4yton
Copy link
Contributor

cl4yton commented Mar 22, 2024

Need to dig into general Python support for decorators:

  • how decorators are defined: what is the syntax for creating the definition of a decorator, and the python model for what this implies
  • how decorators are applied: the @ notation, parameterization; what is the python definition for how decorators are executed.

We believe there are three general cases to handle:

  • built-in decorators: we likely do not have access to the decorator definition, so would need to add support on case-by-case basis.
  • decorators that are defined in code but for which we do not have access to their definition. How might this happen? --> the implementation is in compiled library or other language? Need a general method to appropriately "black box" in the FN.
  • decorators that are defined in code and we do have access to their definition: if we have a general method to interpret the decorator definition and instances of it being applied, then we should be able to fully represent in the FN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants