Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68284
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <skip.montanaro@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.018 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'year?': 0.09; 'cc:addr :python-list': 0.11; "'rb')": 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'shallow': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'variable': 0.18; 'wed,': 0.18; 'alex': 0.19; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'cc:2**0': 0.24; 'van': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'reader': 0.33; 'received:google.com': 0.35; 'subject:?': 0.36; 'skip:o 20': 0.38; 'skip:[ 10': 0.38; 'expect': 0.39; '12,': 0.39; 'subject:. ': 0.67; 'mar': 0.68; 'copies.': 0.68 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=GBZW5VRIcMRmDLfkk8Z1/BIbhdtfeQQXndirM51rMtM=; b=pvnA242pZNXknGUHAU2ZPaO9fygTFQ5yT8n21x/XopVVphj/GzrRYz1BlAfjcrvGxa Xi02sgo5UyAl/8u/+LsqDZahiQPu4srMpISsshheaxhO+OjV+1YDVR8ONxTuQiOuv8MZ 4/F2lhhn4JQeRdDnZaj0WCSuMPe3ptkDsfnTpVnoKiKyTTNOYTpmC5VmX3ua6E1+g2As bTmRbP1iNaBZnFJSbjsLKwgGs9zIyASgXSudpoo77oBtClNgvQhID7MmxEiFppsOtl13 ZXX21ri8YxE/BcupJXmXjOxHxOfxk8Quwe2QEkmdm3vTwybFfCGhy/kA0qg8t6tWKWxg f18Q== |
| MIME-Version | 1.0 |
| X-Received | by 10.42.50.3 with SMTP id y3mr37855372icf.12.1394635718509; Wed, 12 Mar 2014 07:48:38 -0700 (PDT) |
| Sender | skip.montanaro@gmail.com |
| In-Reply-To | <53206e6a$0$2886$e4fe514c@news2.news.xs4all.nl> |
| References | <53206e6a$0$2886$e4fe514c@news2.news.xs4all.nl> |
| Date | Wed, 12 Mar 2014 09:48:38 -0500 |
| X-Google-Sender-Auth | lJDpSVUcq6dyS2S30yYNEaQmF74 |
| Subject | Re: Deep vs. shallow copy? |
| From | Skip Montanaro <skip@pobox.com> |
| To | Alex van der Spek <zdoor@xs4all.nl> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | Python <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 | <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.8092.1394635720.18130.python-list@python.org> (permalink) |
| Lines | 9 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1394635721 news.xs4all.nl 2838 [2001:888:2000:d::a6]:42485 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:68284 |
Show key headers only | View raw
On Wed, Mar 12, 2014 at 9:25 AM, Alex van der Spek <zdoor@xs4all.nl> wrote:
> with open(os.path.join('path', 'foo.txt', 'rb') as txt:
> reader = csv.reader(txt)
> data = [row.append(year) for row in reader]
Forget deep v. shallow copies. What is the value of the variable year?
And why would you expect list.append to return anything?
Skip
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Deep vs. shallow copy? Alex van der Spek <zdoor@xs4all.nl> - 2014-03-12 14:25 +0000
Re: Deep vs. shallow copy? Skip Montanaro <skip@pobox.com> - 2014-03-12 09:48 -0500
Re: Deep vs. shallow copy? Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-03-12 10:00 -0500
Re: Deep vs. shallow copy? Alex van der Spek <zdoor@xs4all.nl> - 2014-03-12 15:29 +0000
Re: Deep vs. shallow copy? Wayne Brehaut <wbrehaut@mcsnet.ca> - 2014-03-12 13:06 -0600
Re: Deep vs. shallow copy? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-12 23:07 +0000
Re: Deep vs. shallow copy? Rustom Mody <rustompmody@gmail.com> - 2014-03-12 20:09 -0700
Re: Deep vs. shallow copy? Ian <hobson42@gmail.com> - 2014-03-13 11:38 +0000
Re: Deep vs. shallow copy? Rustom Mody <rustompmody@gmail.com> - 2014-03-13 08:28 -0700
Re: Deep vs. shallow copy? random832@fastmail.us - 2014-03-13 13:25 -0400
Re: Deep vs. shallow copy? Roy Smith <roy@panix.com> - 2014-03-13 07:44 -0400
Re: Deep vs. shallow copy? Marko Rauhamaa <marko@pacujo.net> - 2014-03-13 14:27 +0200
Re: Deep vs. shallow copy? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-13 23:41 +0000
Re: Deep vs. shallow copy? Chris Angelico <rosuav@gmail.com> - 2014-03-14 10:55 +1100
Re: Deep vs. shallow copy? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-14 01:41 +0000
Re: Deep vs. shallow copy? Ian Kelly <ian.g.kelly@gmail.com> - 2014-03-13 18:08 -0600
Re: Deep vs. shallow copy? Chris Angelico <rosuav@gmail.com> - 2014-03-14 11:22 +1100
Re: Deep vs. shallow copy? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-14 01:59 +0000
Re: Deep vs. shallow copy? Rustom Mody <rustompmody@gmail.com> - 2014-03-13 19:57 -0700
Re: Deep vs. shallow copy? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-14 04:43 +0000
Re: Deep vs. shallow copy? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-03-14 06:17 +0000
Re: Deep vs. shallow copy? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-13 23:31 +0000
csiph-web