Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29866
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.014 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'be:': 0.09; 'sep': 0.09; '24,': 0.16; '3],': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'operation.': 0.16; 'subject:Problem': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'chris': 0.28; 'function': 0.30; 'subject:List': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'list': 0.35; 'clear': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'expensive': 0.36; "wasn't": 0.36; 'should': 0.36; 'does': 0.37; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xkTcLXZHjr89zHp9NQCUO7/fUF7Pxft5zS9ndLakNYk=; b=w9dIim4EqfTqbr5U+JZwIenbx2PTxVf3rVXmK8lYXhEzt81pVfAgbR7EuMHCrPxZ1k Ri9RiuUr5GJ7nWRHyWOcPpArBG1whLWoWGY9srHdSIz6AmuPi7bn/lOs5fHCWxw9elpg s2WP3+HmlnqUKKgsHAEYRLuYhoGZ+W3rRvX5Ow4ItTk3eu0HDgpJqAFNTUxrRLJFklsR eEgQjyex7GyqBlO6T/fs9Dnvtz2r5B67hPMzbpnv9SdhHzZuOlPuIpN5/Ccf2rzmlN0D GDpBEbSS6HazYWvzyrzQ4+FL5KjLu/ezFJLJqgjEQfllpGEmh/9NO2rBD665fre5lm2o TFjQ== |
| MIME-Version | 1.0 |
| In-Reply-To | <CAPTjJmr7F8yqjuD7GBOm1He95_YshEmW_HQ2cKMo4iPDMnCtfg@mail.gmail.com> |
| References | <5126348a-8e87-493d-975c-d6273e59784c@googlegroups.com> <b6555e91-54ba-42fb-bd99-561cb971c2ce@googlegroups.com> <505F8734.2020908@davea.name> <CAPTjJmr7F8yqjuD7GBOm1He95_YshEmW_HQ2cKMo4iPDMnCtfg@mail.gmail.com> |
| Date | Mon, 24 Sep 2012 08:30:33 +1000 |
| Subject | Re: List Problem |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| 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.1161.1348439437.27098.python-list@python.org> (permalink) |
| Lines | 14 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1348439437 news.xs4all.nl 6932 [2001:888:2000:d::a6]:43214 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:29866 |
Show key headers only | View raw
On Mon, Sep 24, 2012 at 8:27 AM, Chris Angelico <rosuav@gmail.com> wrote: > a = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] > b = deepcopy(a) # b is a new list with three new sublists > Oops, this should be: b = copy.deepcopy(a) as in Steven's post. And in case I wasn't clear about it, the deepcopy() function does deal with the issue I mention, but that's part of why it's an expensive operation. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
List Problem jimbo1qaz <jimmyli1528@gmail.com> - 2012-09-23 14:31 -0700
Re: List Problem jimbo1qaz <jimmyli1528@gmail.com> - 2012-09-23 14:44 -0700
Re: List Problem Chris Angelico <rosuav@gmail.com> - 2012-09-24 07:57 +1000
Re: List Problem Dave Angel <d@davea.name> - 2012-09-23 18:03 -0400
Re: List Problem Chris Angelico <rosuav@gmail.com> - 2012-09-24 08:27 +1000
Re: List Problem Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-23 22:37 +0000
Re: List Problem Chris Angelico <rosuav@gmail.com> - 2012-09-24 08:45 +1000
Re: List Problem Chris Angelico <rosuav@gmail.com> - 2012-09-24 08:30 +1000
Re: List Problem "Littlefield, Tyler" <tyler@tysdomain.com> - 2012-09-23 18:56 -0600
Re: List Problem Chris Angelico <rosuav@gmail.com> - 2012-09-24 11:52 +1000
Re: List Problem Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-23 22:07 +0000
Re: List Problem jimbo1qaz <jimmyli1528@gmail.com> - 2012-09-23 15:44 -0700
csiph-web