Re: [pygame] Re: more basic python lists question

2011-11-17 Thread Christopher Night
On Thu, Nov 17, 2011 at 1:32 PM, Sean Wolfe wrote: > if not f.endswith('.png') > for f in filenames: > filenames.remove(f) > > Along with lots of warnings to copy from one list to another rather > than delete on an iterating list. But really how much harm could it > do? lol... I think

[pygame] Re: more basic python lists question

2011-11-17 Thread Sean Wolfe
ah! google is my friend. for f in filenames: if not f.endswith('.png')        filenames.remove(f) Along with lots of warnings to copy from one list to another rather than delete on an iterating list. But really how much harm could it do? lol... I think. On Thu, Nov 17, 2011 at 3:24 PM, Sean