Making immutable instances
Björn Lindström
bkhl at stp.lingfil.uu.se
Wed Nov 23 20:16:44 EST 2005
More information about the Python-list mailing list
Wed Nov 23 20:16:44 EST 2005
- Previous message (by thread): Making immutable instances
- Next message (by thread): Making immutable instances
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Mike Meyer <mwm at mired.org> writes: > I'm curious as to why you care if people add attributes to your > "immutable" class. Personally, I consider that instances of types > don't let me add attributes to be a wart. I agree. To me it seems like the OP kind of wants to implement encapsulation from the back way. Anyway, as he doesn't mention anything about using this immutability for any kind of optimisation, I assume it's about "Control". -- Björn Lindström <bkhl at stp.lingfil.uu.se> Student of computational linguistics, Uppsala University, Sweden
- Previous message (by thread): Making immutable instances
- Next message (by thread): Making immutable instances
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list