Skip to content

Commit

Permalink
doc: corrected the descriptoin of the protocol lookup methodology
Browse files Browse the repository at this point in the history
  • Loading branch information
Zen-CODE committed Apr 22, 2016
1 parent 8e0a225 commit d3c78ab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/source/core_tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -687,10 +687,11 @@ us to use Python objects as delegates::

@protocol('<protocol_name>')

The list of protocols supported by pyobjus is contained in the
`pyobjus/protocols.py` file in your pyobjus checkout folder. Of course, many
libraries define their own protocols, so cannot be included by default. For
a complete list of protocols available on you system, run the
Pyobjus will firstly try to use runtime introspection to determine the protocol
methods. If this fails, it will revert to the list of protocols contained in
the `pyobjus/protocols.py` file in your pyobjus checkout folder. Of course,
many libraries define their own protocols, so cannot be included by default.
For a complete list of protocols available on you system, run the
`tools/build_protocols.py` file and then rebuild pyobjus (as per the install).

So, how do we use this decorator? We add functions with names that correspond
Expand Down

0 comments on commit d3c78ab

Please sign in to comment.