[Python-bugs-list] [ python-Bugs-547211 ] Warn for __coerce__ in new-style classes

noreply@sourceforge.net noreply@sourceforge.net
Mon, 03 Jun 2002 14:04:30 -0700


Bugs item #547211, was opened at 2002-04-22 14:51
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=547211&group_id=5470

Category: Type/class unification
Group: Python 2.3
Status: Open
>Resolution: Later
Priority: 5
Submitted By: Guido van Rossum (gvanrossum)
>Assigned to: Neal Norwitz (nnorwitz)
Summary: Warn for __coerce__ in new-style classes

Initial Comment:
New-style classes don't support __coerce__, except that
when you define it, coerce() will call it. (But it
won't be called by the binary operators.) Methinks a
warning should be issued when a new-style class defines
__coerce__.

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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-06-03 17:04

Message:
Logged In: YES 
user_id=6380

I think this is a PyChecker issue.

Neal, can you add this to PyChecker?

If you do, please close this bug report.

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

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