<!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 text="#000000" bgcolor="#ffffff">
    <br>
    On 04/13/2011 07:37 PM, Eric Snow wrote:<br>
    <blockquote
      cite="mid:BANLkTikdUPyTNanRm_d_SGqfp6z4KcQajg@mail.gmail.com"
      type="cite">
      <div>I suppose you could try something like this:</div>
      <div><br>
      </div>
      <div><span class="Apple-style-span" style="border-collapse:
          collapse; font-family: monospace; font-size: 10px;">class
          Outer:</span></div>
      <div><span class="Apple-style-span" style="border-collapse:
          collapse; font-family: monospace; font-size: 10px;">  global
          Inner<br>
            class Inner:<br>
              class Worker:<br>
                pass<br>
          <br>
            class InnerSubclass(Inner):<br>
              class Worker(Inner.Worker):<br>
                pass</span></div>
      <div><font class="Apple-style-span" face="monospace"><span
            class="Apple-style-span" style="border-collapse: collapse;
            font-size: 9px;"><br>
          </span></font></div>
      <div>However, that pollutes your global namespace.  If you are
        worried about that you could try: [...]<br>
      </div>
    </blockquote>
    <br>
    It also means that Inner is not actually <i>in</i> Outer, and the
    whole point was to have the class accessed as Outer.Inner.  But I
    can get what I wanted, if immediately after the definition of Outer
    I have:<br>
    <blockquote><tt>Outer.Inner = Inner<br>
        del Inner</tt><br>
    </blockquote>
    <br>
    Thanks for the suggestion of "global Inner"!  That makes this
    approach palatable.<br>
    <br>
    <br>
    <i>larry</i><br>
  </body>
</html>