Popular recipes by Chris Melville http://code.activestate.com/recipes/users/103458/2008-06-21T08:12:09-07:00ActiveState Code RecipesTreat the Win32 Registry like a Python dict -- updated (again!) (Python) 2008-06-21T08:12:09-07:00Chris Melvillehttp://code.activestate.com/recipes/users/103458/http://code.activestate.com/recipes/573466-treat-the-win32-registry-like-a-python-dict-update/ <p style="color: grey"> Python recipe 573466 by <a href="/recipes/users/103458/">Chris Melville</a> (<a href="/recipes/tags/sysadmin/">sysadmin</a>). Revision 4. </p> <p>This class wraps most of the win32api functions for accessing a registry. It will read and write all win32 registry types, and will de/serialize python objects to registry keys when a string or integer representation is not possible.</p> <p>This is an update of <a href="http://code.activestate.com/recipes/551761/">recipe 551761</a>, which is in turn an update of 174627, folding in the enhancements listed in the discussion there to allow registry value types to be read and written within the dictionary metaphore if required. It doesnt change how it worked before, it adds a new capability, and shouldnt break existing code using the 551761 version.</p>