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

noreply@sourceforge.net noreply@sourceforge.net
Mon, 11 Dec 2000 11:14:28 -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-11 11:14
By: nascheme

Comment:
Operations on instances now call __coerce__ if it exists.  I
think the patch is now complete.  Converting other builtin types
to "new style numbers" can be done with a separate patch.

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

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.
-------------------------------------------------------

Date: 2000-Dec-07 18:34
By: nascheme

Comment:
Fix some reference counts.   Make use of macros to reduce
duplicate code.  Remove some unused code in classobject.
-------------------------------------------------------

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

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