rdkit.VLib.Supply module — The RDKit 2016.09.1 documentation

# rdkit.VLib.Supply module

class `rdkit.VLib.Supply.` `SupplyNode`(contents=None, **kwargs)

  Bases: `rdkit.VLib.Node.VLibNode`

  base class for nodes which supply things

  Assumptions:
    1. no parents
  Usage Example:

        >>> supplier = SupplyNode(contents=[1,2,3])
        >>> supplier.next()
        1
        >>> supplier.next()
        2
        >>> supplier.next()
        3
        >>> supplier.next()
        Traceback (most recent call last):
            ...
        StopIteration
        >>> supplier.reset()
        >>> supplier.next()
        1
        >>> [x for x in supplier]
        [1, 2, 3]

  `AddParent`(parent, notify=1)
  `next`()
  `reset`()