At 05:23 PM 2/11/2008 +1300, Greg Ewing wrote: >Aahz wrote: > > On Mon, Feb 11, 2008, Greg Ewing wrote: > > > >>There are bound to be things that you *don't* want to copy from > >>the original order, e.g. the order ID, the date... > > > > Certainly -- that's why __copy__() exists, right? > >Yes, but then I don't see the advantage over just >giving the object a copy() method and calling it >directly. > >In other words, I see little benefit in having >copy() be a generic function.
Well, in the current circumstance, it helps because third parties can implement copying for things that didn't implement it themselves. _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
