Re: [Tutor] Looping over lists of objects

2006-04-24 Thread Danny Yoo
On Mon, 24 Apr 2006, Etrade Griffiths wrote: > just feeling my way into Python with a small app that reads data from > file, creates objects using that data, stores the objects in a list, > loops over the list doing comparison tests to filter out various > objects. Here is a code snippet: >

Re: [Tutor] Looping over lists of objects

2006-04-24 Thread Etrade Griffiths
Ed the problem is that my original code did not have the closing brackets for the method calls get_a and get_b whereas the code snippet I posted did. That's probably why your version works and mine failed. Thanks for your help! Alun At 17:19 24/04/2006, Ed Singleton wrote: >On 24/04/06, Etr

Re: [Tutor] Looping over lists of objects

2006-04-24 Thread Ed Singleton
On 24/04/06, Etrade Griffiths <[EMAIL PROTECTED]> wrote: > Hi > > just feeling my way into Python with a small app that reads data from > file, creates objects using that data, stores the objects in a list, loops > over the list doing comparison tests to filter out various objects. Here is > a