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


Groups > comp.lang.python > #69063

Re: [newbie] confusion concerning fetching an element in a 2d-array

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
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; 'subject:: [': 0.04; 'elegant': 0.07; 'explanation': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'wrote': 0.14; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:array': 0.16; 'whatsoever': 0.16; 'code.': 0.18; 'pieces': 0.19; 'subject:] ': 0.20; 'example': 0.22; 'saying': 0.22; 'example.': 0.24; 'first,': 0.26; 'asking': 0.27; 'header:X -Complaints-To:1': 0.27; 'leave': 0.29; "i'm": 0.30; 'code': 0.31; 'jean': 0.31; 'figure': 0.32; 'problem.': 0.35; 'but': 0.35; 'add': 0.35; 'there': 0.35; 'problems': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'little': 0.38; 'help,': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'dave': 0.60; 'is.': 0.60; 'temporarily': 0.60; 'first': 0.61; 'complete': 0.62; 'kind': 0.63; 'myself': 0.63; 'skip:n 10': 0.64; 'here': 0.66; 'future,': 0.83; 'homework': 0.84; 'tone': 0.84; 'you;': 0.84; 'sorry.': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dave Angel <davea@davea.name>
Subject Re: [newbie] confusion concerning fetching an element in a 2d-array
Date Tue, 25 Mar 2014 15:58:10 -0400 (EDT)
Organization news.gmane.org
References <82a05fdc-1f5c-4c9b-9718-09930977268c@googlegroups.com> <53316211$0$29994$c3e8da3$5496439d@news.astraweb.com> <dba12f0e-f169-430a-9785-b98841fd55d0@googlegroups.com> <mailman.8524.1395758247.18130.python-list@python.org> <0cf3d503-8cd6-4702-9260-b0ef3f4cf561@googlegroups.com>
X-Gmane-NNTP-Posting-Host dpc6744198232.direcpc.com
X-Newsreader PiaoHong Usenet NewsReaders 1.36
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 <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>
Newsgroups comp.lang.python
Message-ID <mailman.8536.1395777200.18130.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1395777200 news.xs4all.nl 2920 [2001:888:2000:d::a6]:48361
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:69063

Show key headers only | View raw


 Jean Dubois <jeandubois314@gmail.com> Wrote in message:
> Op dinsdag 25 maart 2014 15:42:13 UTC+1 schreef Dave Angel:

>> If your instructor wanted you to copy examples,  he would have
>>  given you one.
> please Dave leave that belittling tone behind, there's no instructor
> whatsoever involved here. 

It wasn't my intention to belittle you; I'm sorry. But we do get a
 lot of people here asking for homework help, and not saying
 that's what it is. And when it's homework we do better explaining
 than just writing the code. 

In fact you only needed to add a line like
     data= infile.read ()
to Steven's original to get a complete working example. 

> I constructed this example myself as I know very
> well I have to start with little pieces of code first to be able to master
> larger problems later. I just wanted to figure this example out first,
> and as I now learned from Peter's marvellous explanation there _is_ an
> elegant solution in Python to this kind of problem.
> So if you are irritated by newbie-questions in the future, just neglect
> them

Not irritated,  just temporarily misguided. 


-- 
DaveA

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


Thread

[newbie] confusion concerning fetching an element in a 2d-array Jean Dubois <jeandubois314@gmail.com> - 2014-03-25 03:26 -0700
  Re: [newbie] confusion concerning fetching an element in a 2d-array Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-25 11:01 +0000
    Re: [newbie] confusion concerning fetching an element in a 2d-array Jean Dubois <jeandubois314@gmail.com> - 2014-03-25 06:47 -0700
      Re: [newbie] confusion concerning fetching an element in a 2d-array Dave Angel <davea@davea.name> - 2014-03-25 10:42 -0400
        Re: [newbie] confusion concerning fetching an element in a 2d-array Mark H Harris <harrismh777@gmail.com> - 2014-03-25 11:40 -0500
        Re: [newbie] confusion concerning fetching an element in a 2d-array Mark H Harris <harrismh777@gmail.com> - 2014-03-25 11:40 -0500
        Re: [newbie] confusion concerning fetching an element in a 2d-array Jean Dubois <jeandubois314@gmail.com> - 2014-03-25 11:58 -0700
          Re: [newbie] confusion concerning fetching an element in a 2d-array Joel Goldstick <joel.goldstick@gmail.com> - 2014-03-25 15:15 -0400
            Re: [newbie] confusion concerning fetching an element in a 2d-array Jean Dubois <jeandubois314@gmail.com> - 2014-03-26 01:48 -0700
          Re: [newbie] confusion concerning fetching an element in a 2d-array Dave Angel <davea@davea.name> - 2014-03-25 15:58 -0400
            Re: [newbie] confusion concerning fetching an element in a 2d-array Jean Dubois <jeandubois314@gmail.com> - 2014-03-26 01:47 -0700
      Re: [newbie] confusion concerning fetching an element in a 2d-array Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-25 15:35 +0000
      Re: [newbie] confusion concerning fetching an element in a 2d-array Peter Otten <__peter__@web.de> - 2014-03-25 17:12 +0100
        Re: [newbie] confusion concerning fetching an element in a 2d-array Jean Dubois <jeandubois314@gmail.com> - 2014-03-25 11:33 -0700

csiph-web