1. 18 Nis, 2002 4 kayıt (commit)
    • Tim Peters's avatar
    • Andrew M. Kuchling's avatar
    • Guido van Rossum's avatar
      SF bug 542984. · d99b3e78
      Guido van Rossum yazdı
      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.
      d99b3e78
    • Guido van Rossum's avatar
      SF bug 542984. · 6ca7d41c
      Guido van Rossum yazdı
      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.
      6ca7d41c
  2. 17 Nis, 2002 12 kayıt (commit)
  3. 16 Nis, 2002 23 kayıt (commit)
  4. 15 Nis, 2002 1 kayıt (commit)