3 ms·
Eh, I'll give falcolas a pass on that, since the intended behaviour is clearly what any normal person looking at that would think it does - if you wanted to mak
by dTal 10y ago
Eh, I'll give falcolas a pass on that, since the intended behaviour is clearly what any normal person looking at that would think it does - if you wanted to make some sort of closure, I'd hope you'd do it more explicitly (though my opinion of good style and what's supposedly "Pythonic" are often at odds - the whole "[].append()" idiom seems perverse to me). It's not necessarily unreasonable to present technically valid code and say "find the bug" - in C for example you might see "if(x=3)" and conclude, on the basis of what's idiomatic, that it's probably an error.
- flukus 10y ago> since the intended behaviour is clearly what any normal person looking at that would think it does The function is called foo, any normal person would say "wtf is that supposed to do?".