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

Enable original function version to be named #4

Open
jheintz opened this issue Aug 29, 2023 · 1 comment
Open

Enable original function version to be named #4

jheintz opened this issue Aug 29, 2023 · 1 comment

Comments

@jheintz
Copy link
Member

jheintz commented Aug 29, 2023

@versionedfunction
def foo():
  return 0

@foo.version
def foo2():
    return 2

assert foo() == 2

versionContext[foo] = ??? #how do this? maybe <original> as magic string?
assert foo() == 0
@jheintz
Copy link
Member Author

jheintz commented Aug 31, 2023

Enable string version context specification.

@versionedcontext(Foo.algo2) and @versionedcontext('Foo.algo2') and @versionedcontext({'Foo.algo':'2'}

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

1 participant