Skip to content

Commit 5239448

Browse files
authored
Merge pull request #213 from datacamp/feature-copy
give has_expr a copy arg, to speed up scts
2 parents 70ab866 + a810e16 commit 5239448

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pythonwhat/check_funcs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,8 @@ def has_expr(incorrect_msg="__JINJA__:Unexpected expression {{test}}: expected `
481481
be passed explicitely.
482482
name (str): the name of a variable, or expression, whose value will be tested after running the
483483
student and solution code. This could be thought of as post code.
484+
copy (bool): whether to try to deep copy objects in the environment, such as lists, that could
485+
accidentally be mutated. Disable to speed up SCTs. Disabling may lead to cryptic mutation issues.
484486
"""
485487
rep = Reporter.active_reporter
486488

0 commit comments

Comments
 (0)