On Aug 31, 2:03 pm, "bruno.desthuilli...@gmail.com" <bruno.desthuilli...@gmail.com> wrote: > On 31 août, 18:45, Travis Parks <jehugalea...@gmail.com> 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. -- http://mail.python.org/mailman/listinfo/python-list