Brian Curtin <cur...@acm.org> added the comment: Attached is a patch against trunk r76107 which fixes OpenKey to take keyword arguments as the documentation states. There is also a small fix to test_winreg - the third param to OpenKey on line 45 is the `res` positional param, which should always be zero according to the doc. The parameter passed is supposed to be the `sam` parameter, which is now passed as a kwarg. There is no actual change to the test results.
While looking at this, I'm not sure I see the need for OpenKeyEx - it just points to OpenKey. At the very least, it's parameter list in the documentation is incorrect. ---------- keywords: +patch nosy: +brian.curtin Added file: http://bugs.python.org/file15262/issue5774_20091104_v1.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5774> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com