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

Improvements to tackle wrong expression outputs - rebase from #605 #1371

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
adding cost for compiledcodebox
  • Loading branch information
mmatera committed May 12, 2021
commit 1b35633a9b10a7c90a06b91713938139008125e3
4 changes: 3 additions & 1 deletion mathics/builtin/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ class CompiledCodeBox(BoxConstruct):
"""
Used internally by <i>CompileCode[]</i>.
"""

def output_cost(self):
return 12

def boxes_to_text(self, leaves=None, **options):
if leaves is None:
leaves = self._leaves
Expand Down