View Single Post
Old 09-12-2009, 03:44 PM   #49
ahi
Wizard
ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.
 
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
I am beginning to make some progress...

Operator overloading is turning out to be tolerably good in python.

Any hints as to how to make a Python class immutable?

My googling thus far suggests that there is no sane, simple way that is universal... and in most instances deriving your class from an already immutable one is suggested.

Since I do not know what all I'd need to override, it seems saner to do things from scratch... but immutability is necessary, I think.

- Ahi
ahi is offline   Reply With Quote