do I define new-style classes?
>
> - Edward
>
>
> Original Message Follows
> From: "Calvin Spealman" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: "Edward Waugh" <[EMAIL PROTECTED]>
> Subject: Re: Problem with operator over
On 9/17/06, Edward A. Waugh <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Consider the following code:
>
> import sys
>
> class FirstClass:
> def __init__(self, value):
> self.data = value
> def __add__(self, value):
> return FirstClass(self.data + value)
> def display(self):
>
Consider the following code:
import sys
class FirstClass: def
__init__(self, value): self.data =
""> def __add__(self,
value): return
FirstClass(self.data + value) def
display(self): print
self.data
class
SecondClass(FirstClass): def __add__(self,