Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Python discussion, anybody?



On Fri, Oct 27, 2000 at 10:31:47AM +0900, Stephen J. Turnbull wrote:
> 
>     >> cobj.memmber = 18
>                A
>                +-- This can't work as intended!

I think that was Fredric's point... Python just initialised another
class member variable and as a result of a simple typo, his program
produced the unexpected answer of 17 rather then the intended 18. If
everything had to be declared first, then python could throw out an
error when it hit the undeclared variable typo memmber.

Tom.
-- 
Thomas O'Dowd                   Have you had your noop today?
tom@example.com                  http://www.nooper.com


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links