Daniel Stutzbach <dan...@stutzbachenterprises.com> added the comment:

As most of the code in this patch was copied from EnumValue and EnumKey, it 
includes bugs from those functions that have since been fixed.  I'm thinking of 
Issue #2810, although there might have been other changes.

Instead of duplicating code, it would be better to abstract out some of the 
common elements so that in the future changes only need to be made in one place.

While winreg isn't very Pythonic, I imagine most users write a simple wrapper 
around the functions to give it a more Pythonic feel.  I have been using a 
home-brewed class that implements the MutableMapping ABC.  I just posted it as 
a recipe on ActiveState:

http://code.activestate.com/recipes/577381-collectionsmutablemapping-wrapper-around-_winreg/

----------
nosy: +stutzbach

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7877>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to