horst wrote:

> Did I mention that you probably have to Ctrl-d out of the python -c '...' 
> command as Bob's example expects stdin (which you have to terminate)

Yes.  If I'd been writing for reuse, I would have put all the code in
a function body and used

    if __name__ == '__main__':
        my_func()

at the bottom of the file.

Then importing the file would have no side effects.

-- 
Bob Miller                              K<bob>
                                        [EMAIL PROTECTED]
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to