Python docs [was: function with a state]

Leif K-Brooks eurleif at ecritters.biz
Thu Mar 24 22:48:33 EST 2005


Xah Lee wrote:
> The word “object” has generic English meaning as well might have
> very technical meaning in a language. In Python, it does not have very
> pronounced technical meaning. For example, there's a chapter in Python
> Library Ref titled “2. Built-In Objects”, and under it a section
> “2.1 Built-in Functions”. Apparently, functions can't possibly be
> meant as a “object” for comparisons.

Why not?

 >>> def foo():
...     pass
...
 >>> def bar():
...     pass
...
 >>> foo > bar
False



More information about the Python-list mailing list