[Patches] In overloading: not special casing strings
Moshe Zadka
Moshe Zadka <mzadka@geocities.com>
Tue, 7 Mar 2000 06:38:05 +0200 (IST)
On Mon, 6 Mar 2000, Guido van Rossum wrote:
> Thanks. There's one thing broken in this version: you made the test
> for length==1 return false -- it should raise an exception. See the
> patches:
Yes. Undocumented feature (which will be documented in a seperate doc
patch once these get in). I have moral problems with raising an exception
as a result of a "test containment" operation. An ADT of container either
contains something, or it does not. Anything else is an optimization.
<snipped code>
> See: this is the exception I'm talking about.
The reference manual sorts of says this behaviour is nasty.
> I'll fix it.
bug-fixing-finger-happy?-ly y'rs, Z.
--
Moshe Zadka <mzadka@geocities.com>.
http://www.oreilly.com/news/prescod_0300.html