1. 26 Sep, 2001 13 commits
  2. 25 Sep, 2001 25 commits
  3. 24 Sep, 2001 2 commits
    • Tim Peters's avatar
      + Text-mode (but not yet GUI mode) pydoc now produces useful stuff for · f4aad8eb
      Tim Peters authored
        properties:  the docstring (if any) is displayed, and the getter, setter
        and deleter (if any) functions are named.  All that is shown indented
        after the property name.
      
      + Text-mode pydoc class display now draws a horizontal line between
        class attribute groups (similar to GUI mode -- while visually more
        intrusive in text mode, it's still an improvement).
      f4aad8eb
    • Tim Peters's avatar
      Make properties discoverable from Python: · 66c1a525
      Tim Peters authored
      - property() now takes 4 keyword arguments:  fget, fset, fdel, doc.
        Note that the real purpose of the 'f' prefix is to make fdel fit in
        ('del' is a keyword, so can't used as a keyword argument name).
      
      - These map to visible readonly attributes 'fget', 'fset', 'fdel',
        and '__doc__' in the property object.
      
      - fget/fset/fdel weren't discoverable from Python before.
      
      - __doc__ is new, and allows to associate a docstring with a property.
      66c1a525