pythoncom.gif
Previous Next blank.gif Home Page

Class Enumerator - A class that provides indexed access into an Enumerator


SYNOPSIS

import win32com.client.util
class Enumerator
  def Clone(self)
  def Next(self, count=1)
  def Reset(self)
  def __getitem__(self, index)
  def __init__(self, enum)
  def _make_retval_(self, result)

DESCRIPTION

By wrapping a PyIEnum* object in this class, you can perform natural looping and indexing into the Enumerator.

Looping is very efficient, but it should be noted that although random access is supported, the underlying object is still an enumerator, so this will force many reset-and-seek operations to find the requested index.

SEE ALSO

win32com.client.util


Previous Next blank.gif Home Page
www_icon.gif

Copyright © Greg Stein, Mark Hammond, Curt Hagenlocher and a few other contributors
All Rights Reserved
Comments to author:
Generated: Sun Apr 20 1997