Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32772
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <demianbrecht@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.024 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'url:github': 0.09; 'cc:addr:python-list': 0.10; '[none]': 0.16; 'former,': 0.16; 'typo.': 0.16; 'wrote:': 0.17; 'meant': 0.21; 'subject:skip:i 10': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'andrew': 0.27; 'received:209.85.210.46': 0.27; 'skip:@ 10': 0.27; 'subject:list': 0.28; 'catching': 0.29; 'received:google.com': 0.34; 'thanks': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'message-id:@gmail.com': 0.36; 'charset:us-ascii': 0.36; 'rather': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'subject:-': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'header:Message-Id:1': 0.62 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=8uJtT+/mOdy/fqsaFQFdC5bkh3H7meN98cIELlqW5cE=; b=of/92Mm/djoSSQiQIlxSUuxj7vdJ1hG2uAq56pW18ixCoBh2gWxAUz6BZFSphWAvrO e8t2hrtez7CHT9ZZK0Mh4KoUDS1BX4dKpH2o1sxC0/V6mKq1IL3osUWfXk4X8+h7agmd l9IoEVePJ6UH0DxqLQy7REzXlNdoChXOlptJhkTlxbV4141zlAjlmE6yfm62G34Fc9De j2N7O0x74aB92f8tSeq/I7Nf/i2z1hQsYoZRDJ+IGlCI1FV+NTQsLSUBPQjtstCuDQHA HC6TxqhwDLWNWxwr5zcI/RASfGWdpLRxNQgroxowGrjc8KBfBzLHbCIs72cKZhkdZfh6 1DiA== |
| Content-Type | text/plain; charset=us-ascii |
| Mime-Version | 1.0 (Mac OS X Mail 6.2 \(1499\)) |
| Subject | Re: Multi-dimensional list initialization |
| From | Demian Brecht <demianbrecht@gmail.com> |
| In-Reply-To | <50976057.6080007@r3dsolutions.com> |
| Date | Mon, 5 Nov 2012 06:56:33 -0800 |
| Content-Transfer-Encoding | 7bit |
| References | <A399B195-7ED3-42D6-A54F-299FE66EBFAE@gmail.com> <50976057.6080007@r3dsolutions.com> |
| To | andrew3@r3dsolutions.com |
| X-Mailer | Apple Mail (2.1499) |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3290.1352127399.27098.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1352127399 news.xs4all.nl 6863 [2001:888:2000:d::a6]:51361 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:32772 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Multi-dimensional list initialization Demian Brecht <demianbrecht@gmail.com> - 2012-11-05 06:56 -0800
csiph-web