Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue5774] _winreg.OpenKey() is documented with keyword arguments, but doesn't take them

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 4, 2009, 2:27 PM

Post #1 of 1 (35 views)
Permalink
[issue5774] _winreg.OpenKey() is documented with keyword arguments, but doesn't take them

Brian Curtin <curtin[at]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 <report[at]bugs.python.org>
<http://bugs.python.org/issue5774>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.