Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: UNSURE 0.270 X-Spam-Level: ** X-Spam-Evidence: '*H*': 0.50; '*S*': 0.04; 'python': 0.07; '(it': 0.09; 'encounter': 0.16; 'large,': 0.19; 'header:In-Reply-To:1': 0.22; "i'm": 0.26; "i'll": 0.26; 'error': 0.29; "won't": 0.30; 'to:addr:python-list': 0.32; '...': 0.32; 'using': 0.34; 'received:192.168.1': 0.34; 'received:192': 0.34; 'post': 0.34; 'header:User-Agent:1': 0.35; '2.6': 0.35; 'list.': 0.35; 'received:192.168': 0.37; 'two': 0.37; 'but': 0.38; 'to:addr:python.org': 0.39; 'happened': 0.40; 'days.': 0.61; 'reply': 0.61; 'received:62': 0.67; 'works,': 0.69; 'thousand': 0.83; 'received:192.168.13': 0.84; 'received:62.179': 0.84; 'received:62.179.121': 0.84; 'received:upcmail.net': 0.84; 'subject:during': 0.84 X-SourceIP: 86.101.31.185 Date: Fri, 06 May 2011 18:21:07 +0200 From: Laszlo Nagy User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: python-list@python.org Subject: Re: dictionary size changed during iteration References: <4DAED72B.2030400@shopzeus.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.1 cv=Nww7yNiXF4C1XGF+VcigPkOcTpD8wJaI1KQuZlH5eEk= c=1 sm=0 a=rZAvqOacu5wA:10 a=e2611TdPuqcA:10 a=RSPf8KcgRHcA:10 a=8nJEP1OIZ-IA:10 a=3l5tOtGTQlUVQKNiuNYA:9 a=wPNLvfGTeEIA:10 a=bjo-WzhUWsOFrmx9:21 a=2kbTr8SqFC5JQCLO:21 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-Mailman-Approved-At: Sat, 07 May 2011 22:20:40 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 9 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1304799641 news.xs4all.nl 41113 [::ffff:82.94.164.166]:40147 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4917 >> ... > That works, but if d is large, it won't be very efficient because it has > to generate a large list. It is not large. But I'm using Python 2.6 , not Python 3. I did not get this error again in the last two days. I'll post a new reply if I encounter it again. (It happened just a few times out of many thousand program invocations)