<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I'm looking over the yaesu_clone superclass with FT1D subclass as
      a suggested example. I'm confused by the conflicting naming
      conventions. In yaesu_clone.py line 231 the superclass begins with
      these class fields:<br>
    </p>
    <div style="color: #d6deeb;background-color: #000000;font-family: 'Cascadia Code', Consolas, 'Courier New', monospace;font-weight: normal;font-size: 12px;line-height: 16px;white-space: pre;"><div><span style="color: #d6deeb;">    </span><span style="color: #82aaff;">VENDOR</span><span style="color: #d6deeb;"> </span><span style="color: #76aba8;">=</span><span style="color: #d6deeb;"> </span><span style="color: #d9f5dd;">"</span><span style="color: #ecc48d;">Yaesu</span><span style="color: #d9f5dd;">"</span></div><div><span style="color: #d6deeb;">    </span><span style="color: #82aaff;">NEEDS_COMPAT_SERIAL</span><span style="color: #d6deeb;"> </span><span style="color: #76aba8;">=</span><span style="color: #d6deeb;"> </span><span style="color: #ff5874;">False</span></div><div><span style="color: #d6deeb;">    _model </span><span style="color: #76aba8;">=</span><span style="color: #d6deeb;"> </span><span style="color: #c792ea;font-style: italic;">b</span><span style="color: #d9f5dd;">"</span><span style="color: #ecc48d;">ABCDE</span><span style="color: #d9f5dd;">"</span></div></div>
    <p>Why are the first two all caps, but the third is lowercase with a
      leading underscore? Is this documented somewhere that I missed?</p>
    <p>Normally, a leading underscore means the variable is local to the
      current scope and shouldn't be accessed outside of it. But in this
      case, VENDOR and _model are both overridden in the subclass. I
      didn't think that a subclass still counts as local. Also, normally
      all caps means it's a constant. Yet, again, the VENDOR gets
      overridden. So, to my mind all of these variables should be
      lowercase with no leading underscore. Just "vendor", just "model".
      (Or, leading underscores with corresponding @property accessors.)</p>
    <p>(signed) Confused in Las Vegas 😮</p>
    <p><br>
    </p>
    <p><br>
    </p>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /><table style="border-top: 1px solid #D3D4DE;"><tr><td style="width: 55px; padding-top: 13px;"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"/></a></td><td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free.<a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avg.com</a></td></tr></table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>