This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brian.curtin
Recipients brian.curtin
Date 2010-02-07.21:31:35
SpamBayes Score 0.0066216653
Marked as misclassified No
Message-id <1265578300.82.0.0744515010877.issue7877@psf.upfronthosting.co.za>
In-reply-to
Content
While EnumKey and EnumValue directly implement the underlying Windows calls of the same name, they don't feel very Pythonic. The user has to create their own loop and increment a counter to get all of the keys or values, stopping the loop when WindowsError is raised.

I created IterKey and IterValue, iterators over RegEnumKeyEx and RegEnumValueEx respectively. This mainly began as playing around with writing Python iterators in C, but has proven to work pretty nicely so I figured I'd put it out there.

Patch includes docs and tests. Comments/suggestions welcome and appreciated.
History
Date User Action Args
2010-02-07 21:31:40brian.curtinsetrecipients: + brian.curtin
2010-02-07 21:31:40brian.curtinsetmessageid: <1265578300.82.0.0744515010877.issue7877@psf.upfronthosting.co.za>
2010-02-07 21:31:39brian.curtinlinkissue7877 messages
2010-02-07 21:31:38brian.curtincreate