Skip to content

Conversation

@ppotapov-aws
Copy link
Collaborator

Allows tracing kernels like:

def func():
  print("Foo")

class FuncWrapper(nl.NKIObject):
    d = func

def kernel():
    FuncWrapper.d()  # used to be a problem. We parsed `d` as a ref to function object, instead a function call
    fw = FuncWrapper()
    fw.d() # still works as expected

@ppotapov-aws ppotapov-aws merged commit 0f655cb into main Jan 12, 2026
6 checks passed
@ppotapov-aws ppotapov-aws deleted the ppotapov/funcs_as_const_exprs branch January 12, 2026 19:00
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

Successfully merging this pull request may close these issues.

3 participants