Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #90630
| X-FeedAbuse | http://nntpfeed.proxad.net/abuse.pl feeded by 195.154.70.45 |
|---|---|
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news2.arglkargh.de!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!nntpfeed.proxad.net!news.redatomik.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
| Return-Path | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.131 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.75; '*S*': 0.01; 'output': 0.05; 'url:faq': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'example': 0.22; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'url:python': 0.33; 'received:google.com': 0.35; '14,': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'url:3': 0.61; 'believe': 0.68; 'url:me': 0.69; 'saw': 0.77; '2015': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=OTLTNKhF6b1EH8OrTLbYo4Q0uQeivGTG6HfNelAot9U=; b=TZDwinUKxK/OAwGLO9+FgHT0szpJ/S5zNCXPtOo1LSBNRiMaZIEbrzySse3LWJBMp0 u5DGU5hkqd3esANRpZd1sLIHz3rAm0lY8ZOfX16aAqx2IZsrHF0r9BvTUKdL6Z7I3Nor h/jtLyNIWzFENnGjJWQyG8TBlFnsEMNSX2HEkgD0UkVq525ROZEAN7SDW6tjxks+Xeky OChYmZ4p6kE2pgvngdxb5EKfCCfvuAYlsNmNbuUUaqbXZibwu+fcxpYtAEKoLdxqc6kX hIfUD9JRlA2QLqg0MgSKlp7h+xUzP+NSwKIpmbDxsTSNWFtDQ0sBClwg0WVEYAaTJd5V cWgw== |
| X-Received | by 10.50.30.69 with SMTP id q5mr8655182igh.11.1431632952818; Thu, 14 May 2015 12:49:12 -0700 (PDT) |
| MIME-Version | 1.0 |
| In-Reply-To | <CAB1ii-cFpbmdjQfRA_J3TBUZ+Gx8e8vLvqTLo2R-f0ygkykV1A@mail.gmail.com> |
| References | <CAB1ii-cFpbmdjQfRA_J3TBUZ+Gx8e8vLvqTLo2R-f0ygkykV1A@mail.gmail.com> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Thu, 14 May 2015 13:48:32 -0600 |
| Subject | Re: a python pitfall |
| To | Python <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| 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.17.1431632962.17265.python-list@python.org> (permalink) |
| Lines | 8 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1431632962 news.xs4all.nl 2838 [2001:888:2000:d::a6]:39202 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:90630 |
Show key headers only | View raw
On Thu, May 14, 2015 at 12:06 PM, Billy Earney <billy.earney@gmail.com> wrote: > Hello friends: > > I saw the following example at > http://nafiulis.me/potential-pythonic-pitfalls.html#using-mutable-default-arguments > and did not believe the output produced and had to try it for myself.... See also https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: a python pitfall Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-14 13:48 -0600
csiph-web