[Patches] Patch 100730 -- Change creation of new instances in
UserString/UserList
Moshe Zadka
Moshe Zadka <moshez@math.huji.ac.il>
Wed, 5 Jul 2000 10:58:53 +0300 (IDT)
On Wed, 5 Jul 2000, Fredrik Lundh wrote:
[Moshe]
> It's basically a refactoring of the
>
> return self.__class__(...)
>
> ugliness into a single (overridable) method.
>
> I'm +0 on that.
[Fredrik]
> -0: what's the point? why would anyone create userlist sub-
> classes where slicing etc returns objects of *another* class?
Fredrik, one of us doesn't understand the other, but I'm not sure who.
The patch does *not* change what happens to derived classes, *unless* they
override the _newinst() method. What is the problem with that?
--
Moshe Zadka <moshez@math.huji.ac.il>
There is no GOD but Python, and HTTP is its prophet.