Ignore:
Timestamp:
05/12/08 08:23:15 (12 years ago)
Author:
Ivan Raikov
Message:

Updated documentation about define-pyslot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/3/pyffi/trunk/pyffi-eggdoc.scm

    r7358 r10773  
    9797
    9898          (macro "(define-pyslot NAME [SCHEME-NAME])"
    99              (p "Defines an accessor for the Python object attribute " (tt "NAME") ". "
     99             (p "Defines an accessor/modifier for the Python object attribute " (tt "NAME") ". "
    100100                "The optional argument " (tt "SCHEME-NAME") " is an alternate name for the "
    101                 "Scheme procedure. The accessor is a procedure that takes in a Python object "
     101                "Scheme procedure. The returned procedure takes in a Python object "
    102102                "and returns the value of attribute " (tt "NAME") " contained in that object. "
    103                 "If the object has no such attribute, #f is returned. "))
     103                "If the object has no such attribute, #f is returned. "
     104                "If a value is supplied after the name of the object, the procedure acts as a modifier for that slot. "
     105                ))
    104106
    105107          (macro "(define-pymethod NAME [SCHEME-NAME])"
Note: See TracChangeset for help on using the changeset viewer.