Message259257
Just FYI, if you're only trying to make immutable objects, that's what subclassing tuple with properties and __slots__ = () is for (collections.namedtuple does exactly this, building the Python declaration as a string and then eval-ing it to produce a tuple subclass with named property accessors). The only negative is that it still acts like a sequence, but usually that's not a big problem. |
|
Date |
User |
Action |
Args |
2016-01-30 15:23:32 | josh.r | set | recipients:
+ josh.r, rhettinger, gangesmaster, ajaksu2, r.david.murray, matthieu.labbe, torsten, eric.snow, serhiy.storchaka, kushal.das |
2016-01-30 15:23:32 | josh.r | set | messageid: <1454167412.27.0.559101422091.issue1475692@psf.upfronthosting.co.za> |
2016-01-30 15:23:32 | josh.r | link | issue1475692 messages |
2016-01-30 15:23:31 | josh.r | create | |
|