How coding in Python is bad for you
bc at freeuk.com
Tue Jan 24 11:37:52 EST 2017
On 24/01/2017 15:51, Ben Bacarisse wrote:
> Chris Angelico <rosuav at gmail.com> writes:
>> pretty horrendous indentation flaws (examples available if people ask
>> privately, but I will anonymize them because I'm not here to shame
>> students) - but there have been nearly as many cases where the
>> indentation's fine and the bracket nesting isn't.
> Can I ask what editor(s) your students have available? I ask because
> I've not given a moment's thought to indentation or what bracket matches
> what for decades due to having a helpful editor.
How would your editor detect the error in the example I gave earlier?
(Where a tab has been inadvertently removed - or added - but the result
is still valid Python code.)
More information about the Python-list