[issue2895] Crash in ParseTupleAndKeywords when passing byte string keywords

2008-05-16 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, added a test and fixed in r63379. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> ___

[issue2895] Crash in ParseTupleAndKeywords when passing byte string keywords

2008-05-16 Thread Stefan Behnel
New submission from Stefan Behnel <[EMAIL PROTECTED]>: Using 3.0a5, the following code crashes in vgetargskeywords (getargs.c:1542) >>> d = {b"encoding": "abc"} >>> str(b"abc", **d) It should raise a TypeError instead, i.e. line 1535 should read if (!PyUnicode_Check(key)) { instead of