A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-February/138538.html below:

[Python-Dev] Emit SyntaxWarning on unrecognized backslash escapes?

[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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4