function attributes are like function objects

Michael Hudson mwh21 at
Thu Feb 1 07:26:50 EST 2001

Greg Ewing <greg at> writes:

> Sean Reifschneider wrote:
> > 
> > It didn't really
> > seem like they were missing so much as it seemed like they would act
> > more like everything else now...
> Everything? What about lists, dicts, tuples, file
> objects...?
> What's so special about functions that we need to
> be able to plonk arbitrary attributes on them, but
> not any other builtin types?

The fact that people were using the one attribute they could get at
(__doc__) for things far from its original purpose?


  The use of COBOL cripples the mind; its teaching should, therefore,
  be regarded as a criminal offence.
           -- Edsger W. Dijkstra, SIGPLAN Notices, Volume 17, Number 5

More information about the Python-list mailing list