class %SYS.Python.IteratorHelper extends %Library.RegisteredObject

Implementation of an iterator helper for Python

Property Inventory

Method Inventory


property %Iterator as %Collection.AbstractIterator [ Transient ];
Abstract iterator that we are iterating on
Property methods: %IteratorGet(), %IteratorGetSwizzled(), %IteratorIsValid(), %IteratorNewObject(), %IteratorSet()
property %Key as %String;
Current iterator key
Property methods: %KeyDisplayToLogical(), %KeyGet(), %KeyIsValid(), %KeyLogicalToDisplay(), %KeyLogicalToOdbc(), %KeyNormalize(), %KeySet()
property %Mode as %String (VALUELIST = ",values,keys,both") [ InitialExpression = "values" , Required , Transient ];
Mode flag
Property methods: %ModeDisplayToLogical(), %ModeGet(), %ModeIsValid(), %ModeLogicalToDisplay(), %ModeLogicalToOdbc(), %ModeNormalize(), %ModeSet()


method %OnNew(iter As %Collection.AbstractIterator, mode As %String = "") as %Status
Initialize this iterator helper
method __iter__() as IteratorHelper
This only makes sense in "both" mode as we're acting as a dict_items instance.
method __next__() as %String
Python iterator implementation

Inherited Members

Inherited Methods