[Patches] [Patch #102652] Reference implementation for PEP 208 (coercion)

noreply@sourceforge.net noreply@sourceforge.net
Wed, 6 Dec 2000 08:00:45 -0800


Patch #102652 has been updated. 

Project: python
Category: core (C code)
Status: Open
Submitted by: nascheme
Assigned to : Nobody
Summary: Reference implementation for PEP 208 (coercion)

Follow-Ups:

Date: 2000-Dec-04 18:45
By: nascheme

Comment:
This patch is a little rough yet but I guess its better here
than on my website.  The major source of ugliness PyObject_Compare.
-------------------------------------------------------

Date: 2000-Dec-06 08:00
By: nascheme

Comment:
Cleaned up PyObject_Compare() (still needs to be optimized).
__coerce__ on instances needs be to sorted out.  It should
probably be called if it exists for backwards compatibility. 
Longs and complex types still need to be converted to new
style numbers.
-------------------------------------------------------

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

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