Re: Challenge supporting custom deepcopy with inheritance

2009-06-03 Thread Michael H . Goldwasser
On June 2, 2009, Aahz wrote: >>class A(object): >>def __init__(self, aTag): >>self.__aTag = aTag >>self.__aList = [] > >IMO, your problem starts right here. Not only are you using customized >attributes for each class, you're using class-private

Re: Challenge supporting custom deepcopy with inheritance

2009-06-01 Thread Michael H . Goldwasser
On Monday June 1, 2009, Scott David Daniels wrote: > Michael H. Goldwasser wrote: >> Chris, >> >> Thanks for your well-written reply. Your analogy to the >> complexities of other special methods is well noted. I'll accept >>

Re: Challenge supporting custom deepcopy with inheritance

2009-06-01 Thread Michael H . Goldwasser
Chris, Thanks for your well-written reply. Your analogy to the complexities of other special methods is well noted. I'll accept the "small price for flexibility" that you note, if necessary. However, I still desire a cleaner solution. I can examine the inherited slots to see which sp

Re: [Tutor] Challenge supporting custom deepcopy with inheritance

2009-05-31 Thread Michael H . Goldwasser
Sunday May 31, 2009, Kent Johnson wrote: >On Sun, May 31, 2009 at 5:35 PM, Michael H. Goldwasser > wrote: >> >> Yesterday, I posted a question to python-list involving custom >> deepcopies in an inheritance hierarchy.  I haven't received any >>

Challenge supporting custom deepcopy with inheritance

2009-05-30 Thread Michael H . Goldwasser
I've been playing around recently with customizing the deepcopy semantics within an inheritance hierarchy, and run across the following hurdle. Assume that class B inherits from class A, and that class A has legitimately customized its deepcopy semantics (but in a way that is not known to class B

Re: Books for programmers

2008-06-04 Thread Michael H. Goldwasser
Dick Moores <[EMAIL PROTECTED]> writes: > Do not neglect the 2008 book, "Object-Oriented Programming in Python", > by Goldwasser and Letscher. > > > > Dick Moores I'll note that our book is designed as