[Python-Dev] Arbitrary attributes on funcs and methods

Moshe Zadka Moshe Zadka <mzadka@geocities.com>
Wed, 12 Apr 2000 19:36:14 +0200 (IST)


On Wed, 12 Apr 2000, Skip Montanaro wrote:

> To pollute this discussion with an example from another one:
> 
>     i = 3.1416
>     i.__precision__ = 4
> 

And voila! Numbers are no longer immutable. Using any numbers as keys in
dicts?
Moshe Zadka <mzadka@geocities.com>. 
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com