-
Notifications
You must be signed in to change notification settings - Fork 2
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
Updated examples #7
Conversation
examples/tree.py
Outdated
@dataclass | ||
class Leaf: | ||
value: u24 | ||
|
||
|
||
@dataclass | ||
class Node: | ||
left: 'Tree' | ||
right: 'Tree' | ||
|
||
|
||
Tree = Node | Leaf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep the expected code that we'll have working in the future commented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the old example works properly.
examples/simple.py
Outdated
if __name__ == "__main__": | ||
translated_simple = bjit(simple) | ||
print(simple()) | ||
print(translated_simple()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not that relevant, but open an issue to track implementing being able to do this.
I suspect there is something weird going on anyway for this to not work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
No description provided.