Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'assumed': 0.09; 'subject:into': 0.09; 'url:github': 0.09; 'cc:addr:python-list': 0.10; 'subject:array': 0.16; 'wrote:': 0.17; 'either.': 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; 'am,': 0.27; 'skip:@ 10': 0.27; 'subject:list': 0.28; 'array': 0.29; 'could': 0.32; 'received:google.com': 0.34; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'message-id:@gmail.com': 0.36; "wasn't": 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'mean': 0.38; 'received:10': 0.38; 'sure': 0.38; 'header:Received:5': 0.40; 'header:Message-Id:1': 0.62; 'email addr:gmail.com': 0.63; 'subject': 0.66 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=Dw27ZIhof6R7uJm6w4OAtRcx1RtVBmwc6/HsojOw8PY=; b=pqlY4jExH9IXjYsYyFOyDHKpzswwZxETvW+VIiLkJhNIm5cmwhPg+3Awtyq4gi4RqJ eEXJcpBXEj+RlHrYnWocJgia4iOg7m+6SMy/xOmoPdeqI9/YCk2cvd4uG9SIg2eMvjJH UczTc5mLTllmgUSKjBgsUYeNU7Taj/y0qS35SajbCti26ZM9p2YbxJO+ELB81S8eOic7 8yfh0RCFRZXUC1ed8t8iCzerGqSRRJCDv2Tnr95hhlqgMbfstTmcjc+qSsu8uO0+WqWD DAPY9iUWKEWt03UURzXFJeQz887D5nYMMslkcXyZeUdKLQ1RWoN0Xrrhct/EiJTwe4BU ASXw== Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) Subject: Re: turn list of letters into an array of integers From: Demian Brecht In-Reply-To: Date: Wed, 24 Oct 2012 10:36:49 -0700 Content-Transfer-Encoding: quoted-printable References: <07073002-d79f-46f6-83fc-8d20c51b39c3@googlegroups.com> To: wxjmfauth@gmail.com X-Mailer: Apple Mail (2.1485) 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351100215 news.xs4all.nl 6886 [2001:888:2000:d::a6]:46832 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32059 On 2012-10-24, at 10:27 AM, wxjmfauth@gmail.com wrote: > Not so sure what you mean by an "array of integers". I wasn't entirely sure about that either. I assumed given the subject = that it was just a 1-D array and could then be accessed by arr[(y * = width) + x]. Demian Brecht @demianbrecht http://demianbrecht.github.com