Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32051
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.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.017 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'things.': 0.05; 'python': 0.09; '"does': 0.16; '[and': 0.16; 'brilliant': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'oct': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'style.': 0.29; 'code': 0.31; 'generally': 0.32; 'zero': 0.33; 'to:addr:python- list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'method': 0.36; 'useful': 0.36; 'bad': 0.37; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'side': 0.61; 'legal': 0.65 |
| 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=dCcLNdCJnACioAvZjTCKDDsh/k2fYbQhKQ7uKg3Q+0Y=; b=QUvAGgwgBJkPb6kPczVS+tvoLR73GWzMvivUIX2Inp0bUMITPM5tjxSVxFaz+ZpVXH vYI+KCEl0uFjTSNqhBmXOXvY8lrad/aABPWm91naKxuVsBFKCIPaRP8CEtuhxBLNpiUr YKi73MuyPq7Ne9xS++1KwEtZFnOBHY1PgWqlzXmBfnYCubMy9TyZTo+BcFHsUlKl3iwb 3BSSDJfNRrJePMK66CdxpBGaHH0pVN1v+voeJthtLao+94yTpmSWUx7Wn9nB7FWxEnQO Ao+3rEAoBAqRBAc7rBlpB0l0LVc/Oe/c/NQwSNUOM7zhB0MismXIaPKw6T/tQmCaDHvh xAUA== |
| MIME-Version | 1.0 |
| In-Reply-To | <CANaSqUeHEvoPvuKzMOsYD8z1s6sXDV1XJQOZKvBh+cbd=n7pGQ@mail.gmail.com> |
| References | <CAFqGZRE1LbAgoOCAKuynYBw4Rj6++p+misZrsXmv1nwivHuNwg@mail.gmail.com> <5087E540.8060504@davea.name> <CAFqGZRFxfe=_N+1mhSD7ObedHgy6j9vKUhMgbU0smfOEC-wEyg@mail.gmail.com> <CANaSqUeHEvoPvuKzMOsYD8z1s6sXDV1XJQOZKvBh+cbd=n7pGQ@mail.gmail.com> |
| Date | Thu, 25 Oct 2012 02:18:38 +1100 |
| Subject | Re: classes |
| 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.2780.1351091921.27098.python-list@python.org> (permalink) |
| Lines | 11 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1351091921 news.xs4all.nl 6898 [2001:888:2000:d::a6]:45748 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:32051 |
Show key headers only | View raw
On Thu, Oct 25, 2012 at 2:14 AM, Zero Piraeus <schesis@gmail.com> wrote: > By the way ... while Bag.addtwice() is legal Python [and I understand > that you're just playing around here], a method that both "does > something" [changes the object] and "gives something" [returns a > useful value] when that's not strictly necessary isn't brilliant > style. Side point: It's not that it's *bad* code or even bad style; it just isn't the way Python generally does things. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: classes Chris Angelico <rosuav@gmail.com> - 2012-10-25 02:18 +1100
csiph-web