what does the super() function do?
--- On Fri, 4/24/09, Tyler Laing trinio...@gmail.com wrote:
From: Tyler Laing trinio...@gmail.com
Subject: Re: [pygame] Never seen this before
To: pygame-users@seul.org
Date: Friday, April 24, 2009, 7:58 PM
You get that kind of error when you use a recursive
the two files for the game are attached
--- On Fri, 4/24/09, Brian Song unlucky...@gmail.com wrote:
From: Brian Song unlucky...@gmail.com
Subject: Re: [pygame] Never seen this before
To: pygame-users@seul.org
Date: Friday, April 24, 2009, 9:57 PM
If the problems fixed, yay. If not, you should
#Group.add
-Tyler
On Sat, Apr 25, 2009 at 6:34 AM, Yanom Mobis ya...@rocketmail.com wrote:
the two files for the game are attached
--- On *Fri, 4/24/09, Brian Song unlucky...@gmail.com* wrote:
From: Brian Song unlucky...@gmail.com
Subject: Re: [pygame] Never seen this before
To: pygame-users
On Sat, Apr 25, 2009 at 06:33:00AM -0700, Yanom Mobis wrote:
what does the super() function do?
It's a way to call the superclass version of the method you're
overriding. (Technically, it's a built-in type, and not a function, but
that's an irrelevant implementation detail).
Read more about
trinio...@gmail.com
Subject: Re: [pygame] Never seen this before
To: pygame-users@seul.org
Date: Saturday, April 25, 2009, 9:12 AM
Okay, I had assumed you had written your own python class, subclassing one of
the Group classes, and had used .add within the overridden method. I've made
that mistake
Laing trinio...@gmail.com
Subject: Re: [pygame] Never seen this before
To: pygame-users@seul.org
Date: Saturday, April 25, 2009, 9:12 AM
Okay, I had assumed you had written your own python class, subclassing one
of the Group classes, and had used .add within the overridden method. I've
made
On Sat, Apr 25, 2009 at 8:17 AM, Tyler Laing trinio...@gmail.com wrote:
Happens to everyone. It takes time(10 years or 10,000 hours) to get good at
something. I'm at about year 6-7 and I find while I still make silly
mistakes, I've become much better at catching them before or during testing.
On Sat, Apr 25, 2009 at 08:17:11AM -0700, Tyler Laing wrote:
Happens to everyone. It takes time(10 years or 10,000 hours) to get
good at something. I'm at about year 6-7 and I find while I still make
silly mistakes, I've become much better at catching them before or
during testing. :)
Silly
this code
level1 = [(0,0), (20, 0), (40, 0), (60, 0), (80, 0), (100,0), (120,0), (140,0),
(160,0), (180,0), (200,0), (220,0), (240,0)] #positions of enemies
#yatta yatta
def setenemies_lvl1(): # put enemies on screen.
pygame.display.set_caption(Loading Level) #tell player it's loading
You get that kind of error when you use a recursive function, and it
recurses down further than Python has room on the stack for. Typically, when
you get this error, there's something wrong with your recursive function.
What it appears to be doing is within your add function, its calling itself
If the problems fixed, yay. If not, you should put up most/all your source
so it's easier for people to see whats happening.
11 matches
Mail list logo