Skip to content

Conversation

@rocky
Copy link
Member

@rocky rocky commented Jun 6, 2025

Use {} instead of None for inital structure cache

Fixes #1405

@rocky rocky requested a review from mmatera June 6, 2025 22:48
rocky added 2 commits June 7, 2025 16:10
To avoid a Type error in:

  File "Mathics3/mathics-core/mathics/core/expression.py", line 1916, in _is_neutral_symbol
    cache[symbol_name] = True
@rocky rocky force-pushed the structure-cache-None-bug branch from db94c8a to a158b5c Compare June 7, 2025 20:10
@rocky rocky merged commit 2d48746 into master Jun 7, 2025
14 checks passed
@rocky rocky deleted the structure-cache-None-bug branch June 7, 2025 22:58
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

Successfully merging this pull request may close these issues.

structure_cache in mathics.core.expression.structure is None but we try to set it in _is_neutral_symbol()

3 participants