Copy constructors

Glyph Lefkowitz glyph at twistedmatrix.com
Sun Aug 12 02:28:08 EDT 2001


On Sun, 12 Aug 2001, Guido van Rossum wrote:

> Glyph Lefkowitz <glyph at twistedmatrix.com> writes:

> > I think the ZODB uses something like this, but it's implemented using
> > ExtensionClasses.  I'd hate to see it become a requirement to muck around
> > in native code.

[...]

> So if you're relying on something that Zope needs to do, rest assured,
> we'll find a way to do it under the new system too!

Yes.  My one hope for keeping all of Twisted's features in tact through
all these changes is the fact that it has a few things in common with
Zope... I plan to milk that for all it's worth ;-)

> As I just wrote, there will be two kinds of classes: immutable
> (static) classes and dynamic classes.  The latter can be modified just
> like classic ones.  But since this makes them less efficient, you have
> to be explicit about this (when using the new class mechanism, which
> is not the default in 2.2).

As I mentioned in my other email, I think that less efficient should be
the default.  _Usually_ you need dynamism, although it would certainly be
a good thing to have a more efficient way in some cases!

> What do you mean by "real reference replacement"?

I think I meant "wishful thinking about python being more like smalltalk" :-)

                      ______      __   __  _____  _     _
                     |  ____ |      \_/   |_____] |_____|
                     |_____| |_____  |    |       |     |
                     @ t w i s t e d m a t r i x  . c o m
                     [[[[  http://twistedmatrix.com  ]]]]







More information about the Python-list mailing list