Skip to content

Commit

Permalink
Merge pull request #56 from BoonsNaibot/patch-2
Browse files Browse the repository at this point in the history
`PyGreenlet_SetParent` returns `int`
  • Loading branch information
snaury committed Aug 22, 2014
2 parents 5126074 + be660df commit 4c2b2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/greenlet.txt
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ Reference
``PyGreenlet *PyGreenlet_GET_PARENT(PyGreenlet *g)``
Macro that returns the parent greenlet of ``g``.

``PyGreenlet *PyGreenlet_SetParent(PyGreenlet *g)``
``int PyGreenlet_SetParent(PyGreenlet *g)``
Set the parent greenlet of ``g``. Returns 0 for success. If -1 is returned,
then ``g`` is not a pointer to a PyGreenlet, and an AttributeError will
be raised.
Expand Down

0 comments on commit 4c2b2c4

Please sign in to comment.