Sfoglia il codice sorgente

document how to get parent of a node

pull/178/head
Larivact 7 anni fa
committed by GitHub
parent
commit
4b701689c8
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      README.rst

+ 4
- 0
README.rst Vedi File

@@ -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
-------



Caricamento…
Annulla
Salva