[ python-Bugs-1022953 ] binascii.a2b_hqx("") raises SystemError
SourceForge.net
noreply at sourceforge.net
Tue Sep 7 00:59:59 CEST 2004
Bugs item #1022953, was opened at 2004-09-06 03:59
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1022953&group_id=5470
Category: Python Library
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 6
Submitted By: Florian Bauer (bauflo3)
Assigned to: Raymond Hettinger (rhettinger)
Summary: binascii.a2b_hqx("") raises SystemError
Initial Comment:
I noticed the following on Python 2.2, Python 2.3 and
Python 2.4a1 with the Windows builds on WinXP and
Win2000:
>>> import binascii
>>> binascii.a2b_hqx("")
Traceback (most recent call last):
File "<pyshell#12>", line 1, in -toplevel-
binascii.a2b_hqx("")
SystemError: C:\sf\python\dist23
\src\Objects\stringobject.c:3316: bad argument to
internal function
The empty string is probably wrong input to a2b_hqx,
but I think it should raise a ValueError at most, not a
SystemError.
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2004-09-06 17:59
Message:
Logged In: YES
user_id=80475
Fixed.
See:
Modules/binascii.c 2.43
Lib/test/test_binascii.py 1.16
----------------------------------------------------------------------
Comment By: Raymond Hettinger (rhettinger)
Date: 2004-09-06 15:26
Message:
Logged In: YES
user_id=80475
Working on it.
The same error also occurs with a2b_hqx, b2a_uu, b2a_hqx,
and rlecode_hqx.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1022953&group_id=5470
More information about the Python-bugs-list
mailing list