<[EMAIL PROTECTED]> wrote:
...
> > This would be pretty weird, but legal Python.
> > Weirder and weirder, but still legal Python.
>
> This is usually how most of my code turns out :( I'm afraid if I ever
> learn enough
> to make a serious program I will be burned at the stake for such un-
> py
On Mar 18, 7:32 pm, [EMAIL PROTECTED] (Alex Martelli) wrote:
> Here, the message1 and message2 names are LOCAL variables of the
> respective methods: each disappear as soon as its method ends.
>
> If you want to make them into INSTANCE attributes, so they'll stick
> around for later, assign to self
<[EMAIL PROTECTED]> wrote:
> I'm still in the process of learning python via a handful of books I
> bought. One book I am reading just introduced Base Class Methods. I
I believe your problem may be more basic: local variables, istance
attributes, and class variables, are very separate things.