Path: csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: Multi-dimensional list initialization Date: Wed, 07 Nov 2012 18:34:09 +1300 Lines: 11 Message-ID: References: <50978323$0$6908$e4fe514c@news2.news.xs4all.nl> <5098A55C.3090201@r3dsolutions.com> <5098C873.2000200@r3dsolutions.com> <509982CA.7050701@r3dsolutions.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net /CfeWHTc76R3pG9Mg+HG9wObWUbN9c95JYK+LGuyL5tmFVNQc2cE632k95az04DdQ7 Cancel-Lock: sha1:8bTgAEakgE0PtBtShqd4M3sADJw= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: Xref: csiph.com comp.lang.python:32870 If anything is to be done in this area, it would be better as an extension of list comprehensions, e.g. [[None times 5] times 10] which would be equivalent to [[None for _i in xrange(5)] for _j in xrange(10)] -- Greg