[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Speed *triples* by changing 'apply(f, args)' to 'f(*args)'



Pete Shinners schreef op woensdag  5 maart om 08:13:11 +0000:
> Gerrit Holl wrote:
> >Then I changed in sprite.py:311, apply(f, args) to f(*args).
> >Framespeed tripled:
> 
> i'm curious about the 'warning' you are getting. can you run with the 
> "-W all" flags under python, that should print all the warnings you are 
> getting. my version currently runs the same speed either way, but i am 
> not seeing any kind of warnings getting triggered. i'm also checking 
> against 2.3a2

Ah. I didn't know about '-W all'. I get:
/usr/local/lib/python2.3/site-packages/pygame/sprite.py:319: PendingDeprecationWarning: use func(*args, **kwargs) instead of apply(func, args, kwargs)

yours,
Gerrit.

-- 
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org