Jaap Karssenberg <jaap.karssenb...@gmail.com> added the comment:

On Thu, Feb 16, 2012 at 12:29 AM, Michael Foord <rep...@bugs.python.org>wrote:

> The type check in assertEqual, that delegates to the different comparison
> methods, is strict because we can't know that using the error message
> algorithms is sane for arbitrary subclasses - all we can know is whether an
> equality comparison fails or succeeds.
>

So would you allow me to register a method for type "basestring" and have
assertEqual dispatch to that method when both arguments are of this type ?

That way at least I could customize the behavior in sub classes.

Thanks,

Jaap

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14025>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to