arrays - Show the full contents of a list in python with print -


i trying debug output of list manipulations, have print ar in various places. output of form:

[[255,255,255], [255,255,255], [255,255,255], ..., [255,255,255], [255,255,255], [255,255,255]] 

which useless trying since of list missing in ..., (in fact of list not filler data in there). how can show entire list me can figure out if manipulations doing supposed doing?

... python's way of telling you have nested list within (you're recursively referencing list) , can't possibly print go on forever.

>>> = [[1, 2, 3], [4, 5, 6]] >>> a.append(a) >>> [[1, 2, 3], [4, 5, 6], [...]] 

Comments