[ python-Bugs-924361 ] unicodeobjct: bad argument to internal function

SourceForge.net noreply at sourceforge.net
Mon Mar 29 17:18:38 EST 2004


Bugs item #924361, was opened at 2004-03-27 09:20
Message generated for change (Settings changed) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=924361&group_id=5470

Category: Unicode
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
>Assigned to: Martin v. Löwis (loewis)
Summary: unicodeobjct: bad argument to internal function

Initial Comment:
[forwarded from http://bugs.debian.org/239986]

#! /usr/bin/python2.3
import unicodedata
unicodedata.normalize('NFKC', u'')

I guess (but haven't looked at the source) that
something isn't cleaned up properly in this scenario. 
The bug doesn't manifest itself in the normalize() call
itself but the exception is thrown in the next
statement.  (eg running  unicodedata.normalize('NFKC',
u'') ; x = 1 interactively causes the error to be
printed after the x=1 statement)

The x=1 doesn't seem to be needed, simply hitting
return shows the message.

$ python
Python 2.3.3 (#2, Feb 24 2004, 09:29:20) 
[GCC 3.3.3 (Debian)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import unicodedata
>>> unicodedata.normalize('NFKC', u'')
u''
>>> 
SystemError: ../Objects/unicodeobject.c:278: bad
argument to internal function
>>> 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=924361&group_id=5470



More information about the Python-bugs-list mailing list