Closures in leu of pointers?

Michael Torrie torriem at gmail.com
Sat Jun 29 14:36:40 EDT 2013


On 06/29/2013 07:56 AM, Michael Torrie wrote:
> x = [ 34, ]
> 
> def test_func( out ):
>     out[0] += 12
> 
> test_func(x)
> 
> print (x)

Well, actually
  print (x[0])



More information about the Python-list mailing list