using the filter function within class return error

2007-11-02 Thread david . katkowski
I'm trying to use the __builtin__ filter function within a class; however, I receive the following error: NameError: global name 'MajEthnic' is not defined The line of code is: EthMaj = filter(self.MajEthnic,flist) So, I'm trying to use the MajEthnic function to filter the list flist. Any

Re: using the filter function within class return error

2007-11-02 Thread Steven D'Aprano
On Fri, 02 Nov 2007 09:42:17 -0700, david.katkowski wrote: I'm trying to use the __builtin__ filter function within a class; however, I receive the following error: NameError: global name 'MajEthnic' is not defined The line of code is: EthMaj = filter(self.MajEthnic,flist) So, I'm