Closures and Partial Function Application

Travis Parks jehugaleahsa at
Wed Aug 31 21:33:14 CEST 2011

On Aug 31, 2:03 pm, "bruno.desthuilli... at"
<bruno.desthuilli... at> wrote:
> On 31 août, 18:45, Travis Parks <jehugalea... at> wrote:
> > I was a little disappointed the other day when I realized that
> > closures were read-only. I like to use closures quite a bit.
> They are not _strictly_ read only, but Python being first and foremost
> an OO language, it's usually way simpler to use OO instead of closures
> when you start needing such features.

I like to leave OO to large-scale architectures and leave functional
paradigms for implementation details.

Writing an entire class for wrapping an int seems excessive.
Especially if that code is limited to a small scope. I agree, though,
that there is a time and a place for everything.

More information about the Python-list mailing list