Browse Source

document how to get parent of a node

pull/178/head
Larivact 7 years ago
committed by GitHub
parent
commit
4b701689c8
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      README.rst

+ 4
- 0
README.rst View File

@@ -113,6 +113,10 @@ saving the page!) by calling ``str()`` on it::


Likewise, use ``unicode(code)`` in Python 2. Likewise, use ``unicode(code)`` in Python 2.


You can get the parent of a node using::

wikicode.get(wikicode.index(node, True))

Caveats Caveats
------- -------




Loading…
Cancel
Save