[Python-Dev] Arbitrary attributes on funcs and methods

Christian Tismer tismer@tismer.com
Wed, 12 Apr 2000 19:39:34 +0200


Skip Montanaro wrote:
> 
>     BAW> Functions and methods are first class objects, and they already
>     BAW> have attributes, some of which are writable.
> 
> (Trying to read Fredrik's mind...)

takes too long since it isn't countable infinite...

> By extension, we should allow writable attributes to work for other objects.
> To pollute this discussion with an example from another one:
> 
>     i = 3.1416
>     i.__precision__ = 4
> 
> I haven't actually got anything against adding attributes to functions (or
> numbers, if it's appropriate).  Just wondering out loud and playing a bit of
> a devil's advocate.

please let me join your hexensabbat

(de|en)lighted-ly -y'rs - rapunzel

-- 
Christian Tismer             :^)   <mailto:tismer@appliedbiometrics.com>
Applied Biometrics GmbH      :     Have a break! Take a ride on Python's
Kaunstr. 26                  :    *Starship* http://starship.python.net
14163 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     where do you want to jump today?   http://www.stackless.com