<div dir="auto">Hmm.  I’d almost prefer if _X3DNode be a subclass of _X3DField.  I’m  not pretending any  expertise, I am more working with MFNode and how to make it iterable now.   I can probably live with overwriting now.  I think I discovered that MFNode has value instead of children.</div><div dir="auto"><br></div><div dir="auto">Perhaps all MF fields should be iterable?</div><div dir="auto"><br></div><div dir="auto">Thanks.</div><div dir="auto"><br></div><div dir="auto">John</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Sun, Dec 5, 2021 at 5:59 AM <a href="mailto:vmarchetti@kshell.com">vmarchetti@kshell.com</a> <<a href="mailto:vmarchetti@kshell.com">vmarchetti@kshell.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div style="word-wrap:break-word;line-break:after-white-space">Python does support multiple inheritance, but these fragments are not an example of a multiple-inheritance situation -- rather, the later class definition -- where _X3DField is a subclass of _X3DNode, overwrites the earlier class definition.<div><br></div><div>In the x3d.py file, only three classes are defined as direct subclasses of object:</div><div><br></div><div>class _X3DField</div><div>class _X3DNode</div><div>class _X3DStatement</div><div><br></div><div>So I think the operative question is whether it is a design intent that _X3DField also should be a subclass of _X3DNode.  I judge the answer is no, since that would include support for DEF, USE, and metadata. In that light, the second class defintion for _X3DField would be regarded as a bug, to be corrected by modifying the X3duomToX3dPythonPackage.xslt stylesheet.</div><div><div><div><div><br><blockquote type="cite"></blockquote></div></div></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div><div><div><blockquote type="cite"><div>On Dec 4, 2021, at 11:40 PM, John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:</div><br></blockquote></div></div></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div><div><div><blockquote type="cite"><div></div></blockquote></div></div></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div><div><div><blockquote type="cite"><div>
  
    
  
  <div><p><span style="font-family:monospace"><span style="font-family:monospace;background-color:rgb(255,255,255)">Two
          declarations of _X3DField?</span></span></p><p><span style="font-family:monospace"><span style="font-family:monospace;background-color:rgb(255,255,255)">$ grep "class
          _X3DField" x3d.py          </span></span></p><div><span style="font-family:monospace"></span><br></div>
    <span style="font-family:monospace"><span style="font-weight:bold;font-family:monospace;background-color:rgb(255,255,255);color:rgb(255,84,84)">class
        _X3DField</span><span style="font-family:monospace;background-color:rgb(255,255,255)">(object):
      </span><br>
    </span><p><span style="font-family:monospace"><span style="font-weight:bold;font-family:monospace;background-color:rgb(255,255,255);color:rgb(255,84,84)">class
          _X3DField</span><span style="font-family:monospace;background-color:rgb(255,255,255)">(_X3DNode):</span></span></p><p><span style="font-family:monospace"><span style="font-family:monospace;background-color:rgb(255,255,255)">Is there a
          pylint?</span></span></p><p><span style="font-family:monospace"><span style="font-family:monospace;background-color:rgb(255,255,255)">Isn't multiple
          inheritance possible?</span></span></p><p><span style="font-family:monospace"><span style="font-family:monospace;background-color:rgb(255,255,255)">Thanks!</span></span></p><p><span style="font-family:monospace"><span style="font-family:monospace;background-color:rgb(255,255,255)">John<br>
        </span></span></p><div><span style="font-family:monospace"></span><br></div>
  </div></div></blockquote></div></div></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div><div><div><blockquote type="cite"><div>
_______________________________________________<br>x3d-public mailing list<br><a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br><a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br></div></blockquote></div><br></div></div></div></div></blockquote></div></div>