#!/usr/bin/python a = ([1,2,3], [7,8,9]) try: a[0] += [4,5,6] except Exception, e: print "Error: %s" % e print "a=%s" % str(a)