[Patches] [Patch #101458] Adding Unicode support to get|set|hasattr()

noreply@sourceforge.net noreply@sourceforge.net
Mon, 18 Sep 2000 09:22:55 -0700


Patch #101458 has been updated. 

Project: 
Category: core (C code)
Status: Closed
Summary: Adding Unicode support to get|set|hasattr()

Follow-Ups:

Date: 2000-Sep-08 14:48
By: lemburg

Comment:
This patch add Unicode support to the PyObject_SetAttr() and
PyObject_GetAttr() APIs which are used by the mentioned
builtin functions to set or query attributes.

While implementing the patch I found that all current tp_getattro
and tp_setattro implementations (classes, instances, methods) expect
to find string objects as argument and don't even check for this.

The patch realizes this behaviour by only accepting string
or Unicode objects as name parameter to the two C APIs.

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

Date: 2000-Sep-14 15:08
By: gvanrossum

Comment:
Almost OK. You missed delattr()!

Since that's a trivial fix, just check in the fixed patch and close the patch in SF.
-------------------------------------------------------

Date: 2000-Sep-18 09:22
By: lemburg

Comment:
Added delattr() and checked in the patch.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101458&group_id=5470