Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32772 > unrolled thread

Re: Multi-dimensional list initialization

Started byDemian Brecht <demianbrecht@gmail.com>
First post2012-11-05 06:56 -0800
Last post2012-11-05 06:56 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Multi-dimensional list initialization Demian Brecht <demianbrecht@gmail.com> - 2012-11-05 06:56 -0800

#32772 — Re: Multi-dimensional list initialization

FromDemian Brecht <demianbrecht@gmail.com>
Date2012-11-05 06:56 -0800
SubjectRe: Multi-dimensional list initialization
Message-ID<mailman.3290.1352127399.27098.python-list@python.org>
On 2012-11-04, at 10:44 PM, Andrew Robinson <andrew3@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



[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web