Hello, (Sorry for beginning a new thread. Google does not allow me to reply to my own posting. And I cannot use a newsreader at the moment.)
Thanks to all who participated in the thread. I tried the try- and the if-solution. The setdefault-solution didn't work in my program. With the try-solution the process took 37 seconds. With the if-solution the process took so much time that I didn't bother to wait. Klaus -- http://mail.python.org/mailman/listinfo/python-list