Skip to content

Instantly share code, notes, and snippets.

@arpitbbhayani
Created February 7, 2020 06:29
Show Gist options
  • Save arpitbbhayani/ed2af903473d17dd4e1f5c8068bb1a2e to your computer and use it in GitHub Desktop.
Save arpitbbhayani/ed2af903473d17dd4e1f5c8068bb1a2e to your computer and use it in GitHub Desktop.
def get(self, fn, *args):
"""get returns the matching function from the virtual namespace.
return None if it did not fund any matching function.
"""
func = Function(fn)
return self.function_map.get(func.key(args=args))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment