[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] RenderUpdate changes in pygame 1.7?
- To: pygame-users@xxxxxxxx
- Subject: [pygame] RenderUpdate changes in pygame 1.7?
- From: Luke Miller <dodgyville@xxxxxxxxx>
- Date: Sat, 8 Oct 2005 17:10:50 +1000
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sat, 08 Oct 2005 03:11:03 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=K8UvA3zPNMi/fLN4dnl2V7szCjVaYVFrVyXaSKQRNydJLbcludQRvZGpvnU5yfh1xK6Rh7Uoj8dotpmg7q3HuSBZb39vQCZxLSsPBlNTp3uJmMQGokuWH5SAYolR2c2XvTXSspG0RBfXJ/umwyXprAjlKNKruq1tt300WG86yRs=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello!
In pygame 1.6, I have a collection of sprites in a RenderUpdate group,
and my code looks like this:
for i in myCollection:
blah
Now, in pygame 1.7 I get an error when this code is running.
typeerror: iteration over non-sequence
From my debugging, I know that at that point in the code,
myCollection is a <RenderUpdates(3 sprites)>
This code has worked perfectly in the past (on pygame 1.6) and i think
the only difference is I'm now running python 2.4 and pygame 1.7.
And I don't think anything changed my end between versions of pygame.
Was there a change to the internal structure of some of the sprite
groups? Is there an easy fix for this?
Thanks,
Luke