Home

On Sep 20, 9:50 am, thebjorn <BjornSteinarFjeldPetter...@gmail.com>
wrote:

it's bad form to reply to myself, I know, but

> def __iter__(self):
> for k in super(mdict,self).__iter__():
> yield eval(k)

should probably be

def __iter__(self):
return (eval(k) for k in super(mdict,self).__iter__())

I'm still getting used to the power of generator expressions :-)

-- bjorn

previous
next

Registration is open for the 5th Python game challenge!
Sleep?
Re: Fatest standard way to sum bytes (and their squares)?
Re: Why Java Fail and C++ rise
Re: Bug in my C++ program seems really strange. (Update on debugging progress)
forum pokerowe
affiliate
reklamy łódź
akcesoria komputerowe
egipt wakacje