Why are functions atomic?

Michael michael.forbes at gmail.com
Tue May 1 19:49:01 EDT 2007


>From TFM

"Function objects also support getting and setting arbitrary
attributes, which can be used, for example, to attach metadata to
functions. Regular attribute dot-notation is used to get and set such
attributes. Note that the current implementation only supports
function attributes on user-defined functions. Function attributes on
built-in functions may be supported in the future."

http://docs.python.org/ref/types.html

Again, rather inconsitent with the copy sematics.

> On May 1, 9:34 am, John Nagle <n... at animats.com> wrote:
> >      Because Python has objects for when you need to associate
> > state with a function.
>
> >                                 John Nagle




More information about the Python-list mailing list