Multi-dimensional list initialization

Demian Brecht demianbrecht at gmail.com
Mon Nov 5 15:56:33 CET 2012


On 2012-11-04, at 10:44 PM, Andrew Robinson <andrew3 at r3dsolutions.com> wrote:
> but I think you meant:
> 
> m = [[None] * 4, [None] * 4, [None] * 4, [None] *4 ]
> rather than:
> m = [[None] * 4, [None] * 4, [None] * 4, [None * 4]]

Yes, I meant the former, thanks for catching the typo.

Demian Brecht
@demianbrecht
http://demianbrecht.github.com






More information about the Python-list mailing list