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

leaf.unevaluate -> unevaluated_leaves[leaf] in expression.evaluate_next #58

Closed
wants to merge 268 commits into from

Conversation

mmatera
Copy link
Contributor

@mmatera mmatera commented Nov 6, 2021

In Expression.evaluate_next, part of the algorithm requires to keep a register of what leaves were evaluated in certain stages. It was done by setting an "ad-hoc" property .unevaluate in the Expression object. That was OK when Symbol was not a singleton. Now, two different leaves with the same symbol will have the same property, so this strategy becomes fragile. This PR is a first step for removing this fragility.

rocky and others added 30 commits August 4, 2021 06:46
Add colophon listing versions used to build doc
Map `Cuboid` with 2d coordinates to `Rectangle`
…ze-calculation

Multiply pointSize by 0.5 to follow the new 3d graphics API
Segregate image internals
Add section summaries for date & time chapter
Add summary text for Procedural Programming fns
Expand _MPMathMultiFunction to handle a function which is sympy only but
not mpmath.
DOC_USER_TEX_DATA_PATH
DOC_SYSTEM_TEX_DATA_PATH
Add ability to print only chapters or parts of a manual
Use smaller font in title for Mathics release number
Builds on what we did before in order to filter by chapter and part.
This now gives a us a good ability to QUICKLY iterate over problems
in making the doc or in asymptote problem.s
taken from symja
Add ability to filter doc making by section
Maybe the default was different in an older version of Mathematica?
Fixes #1540
Was using wrong default for a,b,c,d...
rocky and others added 24 commits October 10, 2021 12:06
Would love to ditch this testing mechanism and switch to pytest
and sphinx autodoc
Go over docs for Buitin-Function tracing...
The "\|" was shown in the Django documentation, so these tests
were removed.
Improve the looking of PrintTrace's docs
The "\|" was shown in the Django documentation, so these tests
were removed.
Improve the looking of PrintTrace's docs
and top-level assignments
Also add summary text for these
Start to split out assignments into its own module
remove trailing exit() from debugging.
* add subexpression support

* walk_parts_new

* adding comments

* fix

* ensuring that Module uses a copy of the variables

* removing set_position method and old ExpressionPointer class, which now are useless

* removing old walk_parts

* fix Graphics and Graphics3D

* fix graphics and strings

* Using references to symbols instead of create them

* update the name of the parameter

* removing more on the fly building of system symbols

* adding docstrings

* adding CHANGES

* improvements from comments

* removing assert in get_class. Improving description in CHANGES.rst

* removing heads argument in mathics.algorithm.parts._list_parts

* rocky's rewording of the mathics.algorithm.parts._list_parts docstring

* mathics.algorithm.parts -  Improving docstrings. Renaming parameters for clarity. Removing unused parameters.

* pspect -> part specification

* Small doc tweaks

Note: use `` `` in RsT/Sphinx for code inline markup.

* tuple-> frozenset in system_symbols

* Add dosctring for system_symbols; why frozeset

Co-authored-by: rocky <[email protected]>
Replace from_python by a more specific function in some places
Copy link
Contributor

@TiagoCavalcante TiagoCavalcante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - security first!

@mmatera
Copy link
Contributor Author

mmatera commented Jan 20, 2022

As I explain in #122, this solution does not work :(

@mmatera mmatera closed this Jan 20, 2022
@mmatera mmatera deleted the unevaluated_as_dict branch January 20, 2022 22:57
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.

3 participants