Skip to content

Commit 50b58ed

Browse files
committed
Made strict_syntax false by default
1 parent bb90cb4 commit 50b58ed

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/docs/user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ If `strict_syntax` is set to true then the answer and response must have `*` or
240240

241241
If `strict_syntax` is set to false, then `*` can be omitted and `^` used instead of `**`. In this case it is also recommended to list any multicharacter symbols expected to appear in the response as input symbols.
242242

243-
By default `strict_syntax` is set to true.
243+
By default `strict_syntax` is set to false.
244244

245245
#### `symbol_assumptions`
246246

app/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def evaluation_function(response, answer, params, include_test_data=False) -> di
288288
)
289289

290290
# FIXME: Move this into expression_utilities
291-
if params.get("strict_syntax", True):
291+
if params.get("strict_syntax", False):
292292
if "^" in response:
293293
evaluation_result.add_feedback(("NOTATION_WARNING_EXPONENT", symbolic_comparison_internal_messages("NOTATION_WARNING_EXPONENT")(dict())))
294294
if "!" in response:

app/utility/expression_utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ def create_sympy_parsing_params(params, unsplittable_symbols=tuple(), symbol_ass
671671

672672
symbol_dict.update(sympy_symbols(unsplittable_symbols))
673673

674-
strict_syntax = params.get("strict_syntax", True)
674+
strict_syntax = params.get("strict_syntax", False)
675675

676676
parsing_params = {
677677
"unsplittable_symbols": unsplittable_symbols,

0 commit comments

Comments
 (0)