Alas, one reason it's a weak workaround is that it doesn't work - at least, not how I wish it would:
$ cat ptrs x = 34 def p1 (a1): a1[0] += 12 p1 ([x]) print (x) $ python ptrs 34 -- http://mail.python.org/mailman/listinfo/python-list
Alas, one reason it's a weak workaround is that it doesn't work - at least, not how I wish it would:
$ cat ptrs x = 34 def p1 (a1): a1[0] += 12 p1 ([x]) print (x) $ python ptrs 34 -- http://mail.python.org/mailman/listinfo/python-list