[Baypiggies] Looking for a newbie nugget presenter for Thursday, Sept 11th

Shannon -jj Behrens jjinux at gmail.com
Sat Aug 30 01:19:26 CEST 2008


> Explaining the difference between nonlocal, global is a good idea.

Agreed.

> I
> try to think about confusing stuff for C/C++ programmers. The semantic
> of the = operator, how do you live without pointers ?
>
>>>> A = [0,1]
>>>> def add(A): A.append(2)
> ...
>>>> add(A)
>>>> A
> [0, 1, 2]

It's easy--everything's a pointer.  Even ints are pointers.  It's just
that ints are immutable, so they act like values.  However, under the
covers, they're really just pointers.

-jj

-- 
Don't you wish you had a really clever sig like mine?
http://jjinux.blogspot.com/


More information about the Baypiggies mailing list