<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Martin v. L&ouml;wis wrote:
<blockquote cite="mid43F576A3.1030604@v.loewis.de" type="cite">
  <pre wrap="">Guido van Rossum wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Feedback?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I would like this to be part of the standard dictionary type,
rather than being a subtype.

d.setdefault([]) (one argument) should install a default value,
and d.cleardefault() should remove that setting; d.default
should be read-only. Alternatively, d.default could be assignable
and del-able.

Also, I think has_key/in should return True if there is a default.

  </pre>
</blockquote>
And exactly what use would it then be ?<br>
<br>
Michael Foord<br>
<br>
<blockquote cite="mid43F576A3.1030604@v.loewis.de" type="cite">
  <pre wrap="">Regards,
Martin
_______________________________________________
Python-Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python-Dev@python.org">Python-Dev@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/python-dev">http://mail.python.org/mailman/listinfo/python-dev</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk">http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk</a>

  </pre>
</blockquote>
<br>
</body>
</html>