Message99020
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. |
|
Date |
User |
Action |
Args |
2010-02-07 21:31:40 | brian.curtin | set | recipients:
+ brian.curtin |
2010-02-07 21:31:40 | brian.curtin | set | messageid: <1265578300.82.0.0744515010877.issue7877@psf.upfronthosting.co.za> |
2010-02-07 21:31:39 | brian.curtin | link | issue7877 messages |
2010-02-07 21:31:38 | brian.curtin | create | |
|