Repository navigation
Conversation
x = y = z parses as And(Eq(x, y), Eq(y, z)) in parse_expression and parse_latex; an empty side is an error. Adds tests/test_relations.py, which also covers the relational operators from the previous commit. From compareExpressions#278. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # expression_parsing/src/lambdafeedback/expression_parsing/sympy_parsing.py
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new expression-parsing features (relations, chained equalities, read_written_number, big-operator symbols) are a minor version, so they move from 0.3.0rc5 to a 0.4.0 section. All four packages are bumped to 0.4.0rc1, with sibling ranges >=0.4.0rc1,<0.5.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 28, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Features for
0.4.0rc1(a minor version, since they are new features), merged from their feature branches. Further fixes may land before 0.4.0.expression_parsing
!=(feat/relational-parsing, from compareExpressions#276):x < 5,x <= 5,x > 5,x >= 5give unevaluated SymPy relations,x != 5givesNe(x, 5), and a two-inequality chain in one direction (1 < x <= 5) givesAndof both.≠,≤,≥are accepted.split_relationsandRELATIONAL_OPERATORSare exported;split_relationsreplacessplit_equationinparse_expression.x = y = zgivesAnd(Eq(x, y), Eq(y, z))fromparse_expressionandparse_latex.read_written_numberreturns aWrittenNumberwithsignificant_figuresanddecimal_places;round_to_significant_figuresandround_to_decimal_places.\sum,\int,\prod,\lim,\bigcupor\bigcap(BIG_OPERATOR_PREFIXES) wraps its argument when applied, so it previews as the operator followed by its argument.Also merges
rc4-preview(theunits→physical_quantitiesrename, #14), and moves these CHANGELOG entries into a new 0.4.0 section, labelled "(since 0.4.0rc1)". All four packages are at0.4.0rc1, with sibling ranges>=0.4.0rc1,<0.5.0.Checks (on the merged branch):
scripts/test.sh,ruff check,ruff format --checkandmypypass.🤖 Generated with Claude Code