>If Gerard's code works, I would consider it far superior to your code >here. Pythonic does not necessarily mean short and ugly
yes, I agree... and in my script i'm using something very like Gerard's (thanks again, Gerard). I just posted the corrected version of nn's because the original solved only half the problem. thanks, all dmj -- http://mail.python.org/mailman/listinfo/python-list