Author toriningen
Recipients toriningen
Date 2008-12-22.15:06:30
SpamBayes Score 4.7462e-14
Marked as misclassified No
Message-id <1229958391.62.0.85659959701.issue4722@psf.upfronthosting.co.za>
In-reply-to
Content
== What steps will reproduce the problem?
1. Create registry key (let's assume it's located in
HKEY_CURRENT_USER\TestKey);
2. Walk to it in "regedit";
3. Right-click on "(Default)" and select "Modify binary data";
4. Leave everything blank and press "OK";
5. Go to Python and execute this:
>>> import _winreg
>>> _winreg.QueryValue(_winreg.HKEY_CURRENT_USER, 'TestKey')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: ..\Objects\stringobject.c:4271: bad argument to internal
function

== What is the expected output? What do you see instead?
I expect either returning "''" or some ValueError indicating that source
string is malformed.

== What version of the product are you using? On what operating system?
1. Windows XP Professional SP2 English;
2. Tested on Python 2.5.2;
3. Tested on Python 2.6.1;
4. Tested on Stackless Python 2.5.2.

== Please provide any additional information below.
And yes, I know that this function is lame and everybody using it also
is lame, but it's not really a reason to include buggy functions, right?
History
Date User Action Args
2008-12-22 15:06:31toriningensetrecipients: + toriningen
2008-12-22 15:06:31toriningensetmessageid: <1229958391.62.0.85659959701.issue4722@psf.upfronthosting.co.za>
2008-12-22 15:06:30toriningenlinkissue4722 messages
2008-12-22 15:06:30toriningencreate