<p>It should derive from BaseException.</p>
<p>--Guido van Rossum (sent from Android phone)</p>
<div class="gmail_quote">On Jan 20, 2012 4:59 PM, &quot;Steven D&amp;apos;Aprano&quot; &lt;<a href="mailto:steve@pearwood.info">steve@pearwood.info</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Guido van Rossum wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Jan 20, 2012 at 11:51 AM, Donald Stufft &lt;<a href="mailto:donald.stufft@gmail.com" target="_blank">donald.stufft@gmail.com</a>&gt;<u></u>wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 On Friday, January 20, 2012 at 2:36 PM, Tres Seaver wrote:<br>
<br>
On 01/20/2012 02:04 PM, Donald Stufft wrote:<br>
<br>
Even if a MemoryException is raised I believe that is still a<br>
fundamental change in the documented contract of dictionary API.<br>
<br>
How so? Dictionary inserts can *already* raise that error.<br>
<br>
Because it&#39;s raising it for a fundamentally different thing. &quot;You have<br>
plenty of memory, but we decided to add an arbitrary limit that has nothing<br>
to do with memory and pretend you are out of memory anyways&quot;.<br>
<br>
</blockquote>
<br>
Actually due to fragmentation that can already happen.<br>
</blockquote>
<br>
Whether you have run out of total memory, or a single contiguous block, it is still a memory error.<br>
<br>
An arbitrary limit on collisions is not a memory error. If we were designing this API from scratch, would anyone propose using MemoryError for &quot;you have reached a limit on collisions&quot;? It has nothing to do with memory. Using MemoryError for something which isn&#39;t a memory error is ugly.<br>

<br>
How about RuntimeError?<br>
<br>
<br>
<br>
-- <br>
Steven<br>
<br>
______________________________<u></u>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-dev" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/guido%40python.org" target="_blank">http://mail.python.org/<u></u>mailman/options/python-dev/<u></u>guido%40python.org</a><br>
</blockquote></div>