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


Groups > comp.lang.python > #109686

Re: Possible PEP - two dimensional arrays?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Michael Torrie <torriem@gmail.com>
Newsgroups comp.lang.python
Subject Re: Possible PEP - two dimensional arrays?
Date Wed, 8 Jun 2016 12:59:04 -0600
Lines 8
Message-ID <mailman.83.1465412349.2306.python-list@python.org> (permalink)
References <CACMigy1yXKuX0HCyAcE7MrWdC5DJhOMVtnxbcLVkU_Qw4MZsYg@mail.gmail.com> <ce85e0db-071d-5a03-62a7-4bd38d150b11@gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de JN/y12ZrKEnX9oiyOP6nawkees3yXKZg6QAwbhSPdGig==
Return-Path <torriem+gmail@torriefamily.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'implements': 0.07; 'subject:PEP': 0.07; 'subject:two': 0.07; 'closest': 0.09; 'python': 0.10; 'arrays,': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'meant': 0.22; 'arrays': 0.22; 'programming': 0.22; 'unlike': 0.23; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'header:User-Agent:1': 0.26; 'currently,': 0.29; 'dictionary': 0.29; 'array': 0.29; 'message-id:@gmail.com': 0.34; 'languages': 0.34; 'list': 0.34; 'lists.': 0.35; 'there': 0.36; 'created': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'received:org': 0.37; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'charset:windows-1252': 0.62; 'subject:Possible': 0.84
X-Virus-Scanned amavisd-new at torriefamily.org
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
In-Reply-To <CACMigy1yXKuX0HCyAcE7MrWdC5DJhOMVtnxbcLVkU_Qw4MZsYg@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <ce85e0db-071d-5a03-62a7-4bd38d150b11@gmail.com>
X-Mailman-Original-References <CACMigy1yXKuX0HCyAcE7MrWdC5DJhOMVtnxbcLVkU_Qw4MZsYg@mail.gmail.com>
Xref csiph.com comp.lang.python:109686

Show key headers only | View raw


On 06/07/2016 06:17 PM, Harrison Chudleigh wrote:
> I was programming a computer game and found that while 1D arrays can be
> created using the module array, there is no module for two-dimensional
> arrays, unlike languages like C. Currently, the closest thing Python has to
> a 2D array is a dictionary containing lists.

I think you meant to say a list of lists.  Which is actually analogous
to how C implements them.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Possible PEP - two dimensional arrays? Michael Torrie <torriem@gmail.com> - 2016-06-08 12:59 -0600

csiph-web