On 6/7/2012 9:15 AM, Dave (FitEyes) wrote: > How about something like this code? [...] > for member in mlist.getMembers(): > if domain and not member.endswith(domain): > continue > del mlist.bounce_info[member] > count += 1
Close, but that will throw a KeyError for any candidate member that doesn't have bounce_info. Instead of del mlist.bounce_info[member] you want if member in mlist.bounce_info: del mlist.bounce_info[member] -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org