name | the new node's name. default: "" |
text | the contents of the comment. default: "" |
path | the path to an existing file | |
readOnly | whether to open the file read-only. default: false |
path | the path to a qubtree text file |
treeString | such as str(tree) |
treeBytesString | a string containing the binary qubtree (as returned by getBytes()) |
childName | name of a child node | |
returns | Node |
deep |
true: copy the subtree rooted here.
false: copy just this node and its data.
default: true | |
returns | Node |
path | file name | |
returns | true if successful |
path | file name | |
returns | true if successful |
returns | true if successful |
To avoid copying a large file into memory when you're done with it, make sure you hold no references except the root node (del all variables pointing into the tree), then del rootNode. The file is closed automatically when there are no references to its root node.
returns | a list of the names of this node's children |
name | the name of a child node | |
returns | Node, possibly null |
name | the name of a sibling | |
returns | Node, possibly null |
newChild | a node | |
newChild | the name for a newly created child | |
returns | the newly appended child |
template | a node | |
deep | whether to copy template's children or just its data | |
returns | the newly appended clone |
newChild | a node | |
afterChild | a child of this node, or None | |
returns | the newly inserted child |
template | a node | |
deep | whether to copy template's children or just its data | |
afterChild | a child of this node, or None | |
returns | the newly inserted child |
child | a child of this node | |
returns | None |
returns | None |
timeoutMS | how long to wait for the mutex before giving up | |
returns | true if we got the mutex |
returns | None |