My simple script parse output screen and to a new file!
Peter Otten
__peter__ at web.de
Thu Jun 10 03:40:07 EDT 2004
Chuck,
if you want to take full advantage of Python's superior readability, reduce
the number of comments. Instead of commenting out code, remove it and keep
a copy of the old version around.
You can write general notes about file modes or file() vs. open() on a
post-it and stick it on your screen until you've memorized them. The really
important on-topic stuff is best moved into doc-strings.
You'll see your script magically shrink and both we and you will better
understand what it does - trust me :-)
Peter
More information about the Python-list
mailing list