numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
197 stars 118 forks source link

Boolean operations should be lazily evaluated #1037

Open christianp opened 10 months ago

christianp commented 10 months ago

For example, false and expr shouldn't cause expr to be evaluated.

nickdip commented 10 months ago

Hi @christianp, I'm a mathematics teacher who has been learning python for the last year and trying to improve my software development skills - I'm quite interested in helping with this project where I can (with python and maths questions), although this is the first time I'd ever be (trying) to contribute to an open source project! Could you explain in more detail what the issue is, as python should be evaluating the boolean operations in the code by default?

christianp commented 10 months ago

Hi @nickdip, thanks for offering to help. The Numbas runtime is written in JavaScript, not Python. And this problem will take a lot of careful thought to resolve - I think really it has to be me who does that.

Have a look at the issues tagged "good first issue" for tasks you might be able to take on, and read our guidelines on contributing code to Numbas.