Re: ISO exemplary Python scripts

2009-05-10 Thread Tim Roberts
kj wrote: > >Thanks, but the last bit of your post ("...most of which have the >ability to run by themselves") makes me wonder whether we mean the >same thing when we talk of "scripts." Can you give me an example >of a script that *does not* have the ability to run by itself? >When I use the word

Re: ISO exemplary Python scripts

2009-05-10 Thread Rhodri James
On Sat, 09 May 2009 17:09:38 +0100, kj wrote: I know that in the python world the distinction between a script and a (library) module is not so clear-cut, and it is common for library modules to have "top-level" stuff (typically test code) that gets run if the module is invoked directly from th

Re: ISO exemplary Python scripts

2009-05-09 Thread kj
In <802a051qoqmpnih0j2su9hhriqumagu...@4ax.com> Tim Roberts writes: >kj wrote: >> >>I'm learning python, for the umpteenth time. This time I decided >>to start out by writing Python scripts for everyday tasks. Most >>of these scripts are meant to be used only once or twice, but a >>few of the

Re: ISO exemplary Python scripts

2009-05-08 Thread Tim Roberts
kj wrote: > >I'm learning python, for the umpteenth time. This time I decided >to start out by writing Python scripts for everyday tasks. Most >of these scripts are meant to be used only once or twice, but a >few of them have become useful enough that I'd like to make them >a little bit more sol

ISO exemplary Python scripts

2009-05-08 Thread kj
I'm learning python, for the umpteenth time. This time I decided to start out by writing Python scripts for everyday tasks. Most of these scripts are meant to be used only once or twice, but a few of them have become useful enough that I'd like to make them a little bit more solid... I'd like