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

Daniel Stutzbach report at bugs.python.org
Thu Jul 22 16:27:36 CEST 2010


Daniel Stutzbach <daniel at stutzbachenterprises.com> added the comment:

+1 on better names, -1 on removing the reserved parameter

The parameters of OpenKey mirror those of the underlying RegOpenKey call.  If we remove the reserved parameter, then:

1) Any code currently using the sam parameter will break, since it's currently only positional

2) If Microsoft later makes the reserved parameter do something, then we will have to reinsert a parameter before sam or have our arguments in a different order than RegOpenKey

For what it's worth, RegOpenKey names the parameters: hKey, lpSubKey, ulOptions, and samDesired.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5774>
_______________________________________


More information about the Python-bugs-list mailing list