[Python-Dev] Emit SyntaxWarning on unrecognized backslash escapes?
Chris Angelico
rosuav at gmail.com
Tue Feb 24 23:42:16 CET 2015
On Wed, Feb 25, 2015 at 6:54 AM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Chris Angelico wrote:
>>
>> Then he changed the code over to use his
>> own file instead of the provided sample, and at the same time,
>> switched from using open() to using csv.reader(open()), and moved all
>> the code into a function, and fixed three other bugs, and now it isn't
>> working. And he can't figure out why.
>
>
> There's probably a useful meta-lesson in there:
> test after making every change!
Of course! But when you're working with students remotely, you don't
necessarily even know that that's what's happened. All you get is "It
works with sample.txt, but it doesn't work with my file". You may or
may not even get to see the code at first.
Firm believer in "commit often" policy...
ChrisA
More information about the Python-Dev
mailing list