Closed nemoyatpeace closed 8 years ago
When I try this now, I don't see the problem with the list being ['next', 'throw']
, but I do see it throwing this error if I re-use the same list comprehension local variable:
When I name it i2
, it works.
Should be fixed after next production deploy. Our Python parser doesn't support strict mode, which was recently turned on. https://github.com/codecombat/aether/commit/3f124071ad5b3e51564ec1a7368ad784e94e3145
This code gives a strange error. When the second
items =
is called it ends up as a list ['next','throw']. I tested with loop:When I changed the code to the following it runs properly.
Apparently having the comprehension inside the if caused problems. Not sure if the
if
is the problem or the fact that it is indented twice.