But isn't that also a problem? It would make the existence of that member a bit unpredictable.<br><br>On Saturday, May 23, 2015, Larry Hastings <<a href="mailto:larry@hastings.org">larry@hastings.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div>On 05/23/2015 09:46 PM, Guido van
      Rossum wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">How will __definition_order__ be set in the case
        where __prepare__ doesn't return an OrderedDict? Or where a
        custom metaclass's __new__ calls its superclass's __new__ with a
        plain dict? (I just wrote some code that does that. :-)<br>
      </div>
    </blockquote>
    <br>
    In his patch, type_new tests to see if the dict passed in is an
    ordered dict (PyODict_Check).  __definition_order__ is only created
    and populated if it passes the test.<br>
    <blockquote><a href="http://bugs.python.org/file39446/odict-class-definition-namespace.diff" target="_blank">http://bugs.python.org/file39446/odict-class-definition-namespace.diff</a><br>
    </blockquote>
    <br>
    <i>/arry</i><br>
  </div>

</blockquote><br><br>-- <br>--Guido van Rossum (on iPad)<br>