From 4b701689c8da4be683d2d216face7a091e6b39ae Mon Sep 17 00:00:00 2001 From: Larivact Date: Sat, 3 Jun 2017 18:20:57 +0200 Subject: [PATCH] document how to get parent of a node --- README.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.rst b/README.rst index b7d324c..e4816a6 100644 --- a/README.rst +++ b/README.rst @@ -113,6 +113,10 @@ saving the page!) by calling ``str()`` on it:: Likewise, use ``unicode(code)`` in Python 2. +You can get the parent of a node using:: + + wikicode.get(wikicode.index(node, True)) + Caveats -------