Skip to content

Instantly share code, notes, and snippets.

@steeve
Created July 27, 2012 20:38
Show Gist options
  • Save steeve/3190373 to your computer and use it in GitHub Desktop.
Save steeve/3190373 to your computer and use it in GitHub Desktop.
def iterate_on_attributes():
current = dll.ldap_first_attribute(self._l, self._message, byref(self._berElem))
while current:
yield current
current = dll.ldap_next_attribute(self._l, self._message, self._berElem)
for attrib in iterate_on_attributes():
print attrib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment