blockpy-edu / blockpy

Blockly that's more Python than JavaScript, powered with Skulpt
Apache License 2.0
391 stars 130 forks source link

Input causes weird error suppression #87

Closed acbart closed 3 years ago

acbart commented 4 years ago

Per Dennis:

I am working on revising part of the introduction to BlockPy and noticed that type conversion errors are sometimes silently disregarded. For example:

miles = float("ten")

and

distance = "ten" miles = float(distance)

both produce an error message but:

distance = input("input a distance") miles = float(distance)

does not when you input "ten".