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 stutzbach
Date 2009-04-16.19:06:10
SpamBayes Score 1.0624834e-12
Marked as misclassified No
Message-id <1239908773.0.0.157202779439.issue5774@psf.upfronthosting.co.za>
In-reply-to
Content
I noticed this in 2.6, but I imagine it affects 2.7, and 3.x as well.

The documentation for _winreg.OpenKey reads in part:

_winreg.OpenKey(key, sub_key[, res=0][, sam=KEY_READ])

However:

>>> import _winreg
>>> _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, 'Software',
sam=_winreg.KEY_ALL_ACCESS)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: OpenKey() takes no keyword arguments

Probably the OpenKey implementation should be updated to use
PyArg_ParseTupleAndKeywords instead of PyArg_ParseTuple?
History
Date User Action Args
2009-04-16 19:06:13stutzbachsetrecipients: + stutzbach
2009-04-16 19:06:13stutzbachsetmessageid: <1239908773.0.0.157202779439.issue5774@psf.upfronthosting.co.za>
2009-04-16 19:06:11stutzbachlinkissue5774 messages
2009-04-16 19:06:10stutzbachcreate