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

RE: [pygame] How to rotate a rect



that's supposed to be range(s+inc,e,inc) not range(s+e,e,inc).. btw.. I just
woke up

--cut--

just out of curiosity, would using:
for i in range(s+e,e,inc):
  for j in range(s,e,inc):
    # do stuff

or even:
r=range(s,e,inc)
for i in r[1:]:
  for j in r:
    # do stuff

be faster than those while loops at the expense of some memory (which is
unrealistically cheap and plentiful nowadays anyways)?

I've only been using python for a few weeks and haven't really dug into its
performance yet... I'm currently working on a network application that
doesn't need that kinda tuning..

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org