function attributes are like function objects
mwh21 at cam.ac.uk
Thu Feb 1 13:26:50 CET 2001
Greg Ewing <greg at cosc.canterbury.ac.nz> 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
> 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