Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21899
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Neil Cerutti <neilc@norwich.edu> |
| Newsgroups | comp.lang.python |
| Subject | A debugging story. |
| Date | 19 Mar 2012 14:33:25 GMT |
| Organization | Norwich University |
| Lines | 27 |
| Message-ID | <9soudlFimvU1@mid.individual.net> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net iPE6OuWyKGeSjOrHGcyXPQXfqCS78cCLc9zg4gMDwiTSKVx5f/ |
| Cancel-Lock | sha1:Jyisfir1bkeUPNtNew97N9idp0A= |
| User-Agent | slrn/0.9.9p1/mm/ao (Win32) |
| Xref | csiph.com comp.lang.python:21899 |
Show key headers only | View raw
I just spent two hours debugging a crucial, though fairly simple, program. As part of the processing of an admissions report, I use difflib to compare two csv files. I compare the current file with one from the immediate past. The file changes over time as new students are accepted, and current students change major and so forth. I next comb through the generated diff to find the actually changed fields, keeping a log of critical changes. I found I had not accounted for field names changing between runs of the admissions report, as recently happened when something had to be added to the report. I finally got it working and tested, and then was horrified when a slip of my finger caused me to have to revert to a previous version of the file from rcs. Two hours of work, down the bit-bucket! My horror abated when I found I was able to make the necessary changes again in roughly 30 seconds. This message brought to you by the Debugging is Mostly Comprehending Old Code and Testing Council. -- Neil Cerutti
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
A debugging story. Neil Cerutti <neilc@norwich.edu> - 2012-03-19 14:33 +0000
csiph-web