Ok, perhaps slightly more pythonic would be:
for refto, refs in references.iteritems():
try:
pending_references[ refto ].extend( refs )
except KeyError:
pending_references[ refto ] = copy.copy( refs )
- Shaun
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.11.53.63 with SMTP id b63mr91252cwa;
Sat, 20 May 2006 15:16:59 -0700 (PDT)
X-Google-Token: JSn_ZgwAAAA9TQu1BeNkqq3dTJht7_VU
Received: from 66.92.72.228 by j55g2000cwa.googlegroups.com with HTTP;
Sat, 20 May 2006 22:16:59 +0000 (UTC)
From: "shaunc" <[EMAIL PROTECTED]>
To: "Django developers" <[email protected]>
Subject: Re: bug? missing foreign key constraints in SQL
Date: Sat, 20 May 2006 15:16:59 -0700
Message-ID: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3)
Gecko/20060426 Firefox/1.5.0.3,gzip(gfe),gzip(gfe)
Mime-Version: 1.0
Content-Type: text/plain
Ok, perhaps slightly more pythonic would be:
for refto, refs in references.iteritems():
try:
pending_references[ refto ].extend( refs )
except KeyError:
pending_references[ refto ] = copy.copy( refs )
- Shaun
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---