Some language proposals.

Paul Prescod paul at
Wed Feb 25 17:45:19 CET 2004

Jacek Generowicz wrote:

> Paul Prescod <paul at> writes:
>>I disagree. Closures are rare in Python because Python is primarily an
>>OOP language.
> I disagree, Python is a multi-paradigm language ...

In Python functions are objects but objects are not functions. In (e.g.) 
  Scheme the opposite is true.

> ... I fail to see how
> this has any bearing on the use of closures ... all of which is
> irrelevant to my original point, which was to note out that saying
> "people don't use it much" is not a very convincing argument for not
> fixing something that is broken ... because the very fact that it is
> broken probably contributes to people not using it much.

But the more important point is that people do not NEED it much. Guido 
writes hundreds of lines of Python code per week. If he often ran into 
situations where a mutable closure would make a big difference then he 
would presumably find some way of doing it. The people who want this 
seem most often to be people trying to import their coding styles from 
another language.

  Paul Prescod

More information about the Python-list mailing list