This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author josh.r
Recipients ajaksu2, eric.snow, gangesmaster, josh.r, kushal.das, matthieu.labbe, r.david.murray, rhettinger, serhiy.storchaka, torsten
Date 2016-01-30.15:23:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454167412.27.0.559101422091.issue1475692@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-01-30 15:23:32josh.rsetrecipients: + josh.r, rhettinger, gangesmaster, ajaksu2, r.david.murray, matthieu.labbe, torsten, eric.snow, serhiy.storchaka, kushal.das
2016-01-30 15:23:32josh.rsetmessageid: <1454167412.27.0.559101422091.issue1475692@psf.upfronthosting.co.za>
2016-01-30 15:23:32josh.rlinkissue1475692 messages
2016-01-30 15:23:31josh.rcreate