Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75035
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <joel.goldstick@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.023 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'subject:Question': 0.07; '22,': 0.09; 'builtin': 0.09; 'explanation': 0.09; 'cc:addr :python-list': 0.11; 'def': 0.12; 'mylist': 0.16; 'subject:object': 0.16; 'wrote:': 0.18; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'example.': 0.24; 'cc:2**0': 0.24; '>': 0.26; 'header:In-Reply-To:1': 0.27; '[1]': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'url:python': 0.33; 'could': 0.34; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'thanks': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'list': 0.37; 'pm,': 0.38; 'explain': 0.39; 'url:mail': 0.40; 'july': 0.63; 'to:addr:gmail.com': 0.65; 'jul': 0.74; 'shadow': 0.84; 'joel': 0.91 |
| 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 :cc:content-type; bh=irqJBCIaruwivcKdsRlOFvaKMbMaSdts+Y25qw6x8jU=; b=k3cIA21hzlCLX59w7mQy3L/oND9MkxGEjrAwzYRsOCIQtjWJTl+RZE8edNJLyu6oW8 f2rRZXYM84m6Upm0aK5r4yJ1okVHzmcEFqyt1araJ4C8Q9D444tdAexrkDg0n0NuohmC g1gPGARiECDd0qel2u2S1O3dM83cCxod1xInBRogaGf8kQAqJIgCLH4tgb0l4vYu+ZK+ emITOXAq/hbx5CUisjXbxNPXXqoTqt/Vo8Bz9Uv7v7thyu2KoKVP1a9zFFiCVJJoIwGg ezw2flvjmruQSAq+ySpj0q0/d/BCzqkv3W0mG1bSVM7FiKRzt4U3CSdbxnuxofWq+mXf kcQA== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.164.11 with SMTP id ym11mr16758758vdb.74.1406068018961; Tue, 22 Jul 2014 15:26:58 -0700 (PDT) |
| In-Reply-To | <6d919cfd-5d3e-4081-94a7-80ce64eedd83@googlegroups.com> |
| References | <cc0616eb-642a-426c-a995-6665ee4c52b9@googlegroups.com> <986eee35-0327-46e5-bce0-b1ae4572dd8f@googlegroups.com> <c3808lFn5iuU1@mid.individual.net> <mailman.12193.1406062021.18130.python-list@python.org> <6d919cfd-5d3e-4081-94a7-80ce64eedd83@googlegroups.com> |
| Date | Tue, 22 Jul 2014 18:26:58 -0400 |
| Subject | Re: Question about Pass-by-object-reference? |
| From | Joel Goldstick <joel.goldstick@gmail.com> |
| To | fl <rxjwg98@gmail.com> |
| Content-Type | multipart/alternative; boundary=001a11c22fb4cce7de04fecfb8ef |
| Cc | "python-list@python.org" <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.12203.1406068020.18130.python-list@python.org> (permalink) |
| Lines | 62 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1406068020 news.xs4all.nl 2850 [2001:888:2000:d::a6]:60779 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:75035 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
it copies the list On Tue, Jul 22, 2014 at 6:17 PM, fl <rxjwg98@gmail.com> wrote: > On Tuesday, July 22, 2014 4:46:25 PM UTC-4, emile wrote: > > On 07/22/2014 01:35 PM, Peter Pearson wrote: > > def reassign(mylist): # no reason to shadow the list builtin > > mylist[:] = [0,1] > > mylist = [1] > > reassign(mylist) > > mylist > > Emile > > Thanks for your example. I do not find the explanation of [:] on line. > Could you > explain it to me, or where can I find it on line? > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Question about Pass-by-object-reference? fl <rxjwg98@gmail.com> - 2014-07-22 12:04 -0700
Re: Question about Pass-by-object-reference? Ned Batchelder <ned@nedbatchelder.com> - 2014-07-22 15:32 -0400
Re: Question about Pass-by-object-reference? fl <rxjwg98@gmail.com> - 2014-07-22 12:54 -0700
Re: Question about Pass-by-object-reference? fl <rxjwg98@gmail.com> - 2014-07-22 12:34 -0700
Re: Question about Pass-by-object-reference? Peter Pearson <ppearson@nowhere.invalid> - 2014-07-22 20:35 +0000
Re: Question about Pass-by-object-reference? emile <emile@fenx.com> - 2014-07-22 13:46 -0700
Re: Question about Pass-by-object-reference? fl <rxjwg98@gmail.com> - 2014-07-22 15:17 -0700
Re: Question about Pass-by-object-reference? Joel Goldstick <joel.goldstick@gmail.com> - 2014-07-22 18:26 -0400
Re: Question about Pass-by-object-reference? emile <emile@fenx.com> - 2014-07-22 15:33 -0700
Re: Question about Pass-by-object-reference? Jerry Hill <malaclypse2@gmail.com> - 2014-07-22 19:06 -0400
Re: Question about Pass-by-object-reference? fl <rxjwg98@gmail.com> - 2014-07-22 15:31 -0700
Re: Question about Pass-by-object-reference? emile <emile@fenx.com> - 2014-07-22 15:40 -0700
Re: Question about Pass-by-object-reference? fl <rxjwg98@gmail.com> - 2014-07-22 16:00 -0700
Re: Question about Pass-by-object-reference? emile <emile@fenx.com> - 2014-07-22 16:10 -0700
Re: Question about Pass-by-object-reference? Terry Reedy <tjreedy@udel.edu> - 2014-07-22 20:27 -0400
Re: Question about Pass-by-object-reference? fl <rxjwg98@gmail.com> - 2014-07-22 18:49 -0700
Re: Question about Pass-by-object-reference? Ben Finney <ben+python@benfinney.id.au> - 2014-07-23 11:59 +1000
Re: Question about Pass-by-object-reference? Steven D'Aprano <steve@pearwood.info> - 2014-07-23 05:35 +0000
Re: Question about Pass-by-object-reference? Chris Angelico <rosuav@gmail.com> - 2014-07-23 16:07 +1000
Re: Question about Pass-by-object-reference? Ben Finney <ben+python@benfinney.id.au> - 2014-07-23 16:25 +1000
Re: Question about Pass-by-object-reference? Terry Reedy <tjreedy@udel.edu> - 2014-07-23 18:51 -0400
Re: Question about Pass-by-object-reference? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-24 03:22 +0000
Re: Question about Pass-by-object-reference? Steven D'Aprano <steve@pearwood.info> - 2014-07-24 05:05 +0000
Re: Question about Pass-by-object-reference? Steven D'Aprano <steve@pearwood.info> - 2014-07-23 05:36 +0000
Re: Question about Pass-by-object-reference? Terry Reedy <tjreedy@udel.edu> - 2014-07-23 18:32 -0400
Re: Question about Pass-by-object-reference? alex23 <wuwei23@gmail.com> - 2014-07-25 15:20 +1000
Re: Question about Pass-by-object-reference? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-23 01:56 +0000
csiph-web