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 stutzbach
Recipients BreamoreBoy, brian.curtin, stutzbach, tim.golden
Date 2010-09-01.12:22:59
SpamBayes Score 4.708845e-05
Marked as misclassified No
Message-id <1283343781.67.0.692900702808.issue7877@psf.upfronthosting.co.za>
In-reply-to
Content
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/
History
Date User Action Args
2010-09-01 12:23:01stutzbachsetrecipients: + stutzbach, tim.golden, brian.curtin, BreamoreBoy
2010-09-01 12:23:01stutzbachsetmessageid: <1283343781.67.0.692900702808.issue7877@psf.upfronthosting.co.za>
2010-09-01 12:22:59stutzbachlinkissue7877 messages
2010-09-01 12:22:59stutzbachcreate