1. 18 Apr, 2002 3 commits
    • Andrew M. Kuchling's avatar
    • Guido van Rossum's avatar
      SF bug 542984. · 61d7184f
      Guido van Rossum authored
      Change type_get_doc (the get function for __doc__) to look in tp_dict
      more often, and if it finds a descriptor in tp_dict, to call it (with
      a NULL instance).  This means you can add a __doc__ descriptor to a
      new-style class that returns instance docs when called on an instance,
      and class docs when called on a class -- or the same docs in either
      case, but lazily computed.
      
      I'll also check this into the 2.2 maintenance branch.
      61d7184f
    • Guido van Rossum's avatar
      SF bug 542984. · 34b4f094
      Guido van Rossum authored
      Change type_get_doc (the get function for __doc__) to look in tp_dict
      more often, and if it finds a descriptor in tp_dict, to call it (with
      a NULL instance).  This means you can add a __doc__ descriptor to a
      new-style class that returns instance docs when called on an instance,
      and class docs when called on a class -- or the same docs in either
      case, but lazily computed.
      
      I'll also check this into the 2.2 maintenance branch.
      34b4f094
  2. 17 Apr, 2002 12 commits
  3. 16 Apr, 2002 23 commits
  4. 15 Apr, 2002 2 commits