[Python-ideas] Support other dict types for type.__dict__
Mark Janssen
dreamingforward at gmail.com
Mon Feb 27 19:45:45 CET 2012
On Mon, Feb 27, 2012 at 11:35 AM, Rob Cliffe <rob.cliffe at btinternet.com> wrote:
> I suggested a "mutable" attribute some time ago.
> This could lead to finally doing away with one of Python's FAQs: Why does
> python have lists AND tuples? They could be unified into a single type.
> Rob Cliffe.
Yeah, that would be cool. It would force (ok, *allow*) the
documenting of any non-mutable attributes (i.e. when they're mutable,
and why they're being set immutable, etc.).
There an interesting question, then, should the mutable bit be on the
Object itself (the whole type) or in each instance....? There's
probably no "provable" or abstract answer to this, but rather just an
organization principle to the language....
m
More information about the Python-ideas
mailing list