[issue13925] making assignments to an empty two dimensional list

2012-02-01 Thread Mark Dickinson
Mark Dickinson added the comment: This isn't a bug, but a known gotcha: see. http://docs.python.org/faq/programming.html#how-do-i-create-a-multidimensional-list -- nosy: +mark.dickinson resolution: -> invalid status: open -> closed ___ Python trac

[issue13925] making assignments to an empty two dimensional list

2012-02-01 Thread Dave E
New submission from Dave E : I might be missing something, but I am expecting the following code to print out a list of lists with each internal list holding one number[0-4], but instead the internal lists are a copy of the list "count". #!/usr/bin/python count = range(4) twoDimensionList =