Re: spaces in re.compile()
>>> d = re.compile(' \d{3}\.\d{3}\.\d{3} ') >>> d.findall(' 123.345.678 ') [' 123.345.678 '] Works for me. -- http://mail.python.org/mailman/listinfo/python-list
Re: Pre-PEP: Dictionary accumulator methods
Raymond Hettinger wrote: > I would like to get everyone's thoughts on two new dictionary methods: > > def count(self, value, qty=1): > try: > self[key] += qty > except KeyError: > self[key] = qty > > def appendlist(self, key, *