-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dynamic memoization calls (#82)
Related to Safe-DS/DSL#1013 - introduces a new `memoized_dynamic_call` function, that fetches the callable from the provided instance (receiver), calculates a new fully qualified function name for the dynamic call and forwards everything to the memoization map --------- Co-authored-by: megalinter-bot <[email protected]>
- Loading branch information
1 parent
25c49e2
commit 172b398
Showing
3 changed files
with
196 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
"""A runner for the Python code generated from Safe-DS programs.""" | ||
|
||
from .server._pipeline_manager import file_mtime, memoized_call, save_placeholder | ||
from .server._pipeline_manager import file_mtime, memoized_dynamic_call, memoized_static_call, save_placeholder | ||
|
||
__all__ = [ | ||
"file_mtime", | ||
"memoized_call", | ||
"memoized_static_call", | ||
"memoized_dynamic_call", | ||
"save_placeholder", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters