python generators and infinite power series

So I found an interesting paper describing how to use lazy lists to represent infinite series and i thought I’d try to do the same thing in python using generators, which are similar.

It’s cool but kind of a mess. I assume with more thought this could be tweaked into a clear thing. The thunking is especially gross. Maybe totally unnecessary? At some point I felt like it was the right thing to do for some reason and then I stuck with it.

The obvious simpler way would be to truncate the series at n=100 or something and just use lists. Why would I ever want terms higher than that anyhow? Interesting exercise though.