[Python-bugs-list] [ python-Bugs-498915 ] PyMapping_DelItemString doesn't exists

noreply@sourceforge.net noreply@sourceforge.net
Sat, 05 Jan 2002 02:53:57 -0800


Bugs item #498915, was opened at 2002-01-03 03:29
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=498915&group_id=5470

Category: Python Interpreter Core
Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 7
Submitted By: Jesús Cea Avión (jcea)
Assigned to: Jeremy Hylton (jhylton)
Summary: PyMapping_DelItemString doesn't exists

Initial Comment:
This bug seems related to 
https://sourceforge.net/tracker/?
group_id=5470&atid=105470&func=detail&aid=476852

Python 2.2 here.

"PyMapping_DelItemString" is really a macro (defined 
in "abstract.h") which delegates 
to "PyObject_DelItemString". The problem is 
that "PyObjectDelItemString" *DOESN'T* exists.

I have changed my code to call PyDict_* routines 
instead the previous PyMapping_* to overcome this 
issue temporally. This is almost a "showstop" bug :-)

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

>Comment By: Martin v. Löwis (loewis)
Date: 2002-01-05 02:53

Message:
Logged In: YES 
user_id=21627

Thanks for your patch. It had a little too much code
duplication for my taste, so I changed it to delegate to
DelItem(). Committed as abstract.h 2.43 and 2.42.6.1,
abstract.c 2.94 and 2.93.6.1.

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

Comment By: Jesús Cea Avión (jcea)
Date: 2002-01-03 10:48

Message:
Logged In: YES 
user_id=97460

This patch should be studied by somebody familiar enough 
with Python inner working, buit it seems to run fine in my 
environment.

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

Comment By: Guido van Rossum (gvanrossum)
Date: 2002-01-03 05:50

Message:
Logged In: YES 
user_id=6380

Oops, you're right! Our apologies. A fix wouldn't be hard,
but since we're all busy here with high priority stuff, it
may take a while. If you can submit a patch, that would make
things easier.

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

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