Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32056
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.016 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'things.': 0.05; 'python': 0.09; 'sure,': 0.09; ':-)': 0.13; '...]': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'oct': 0.16; 'pythonic': 0.16; 'write.': 0.16; 'wrote:': 0.17; 'thu,': 0.17; '>>>': 0.18; 'code.': 0.20; 'made.': 0.22; 'header:In-Reply- To:1': 0.25; 'values': 0.26; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'chris': 0.28; "i'm": 0.29; 'code': 0.31; 'point': 0.31; 'generally': 0.32; 'getting': 0.33; 'zero': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'especially': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.36; 'method': 0.36; 'bad': 0.37; 'october': 0.37; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'easy': 0.60; 'matter': 0.61; 'side': 0.61; 'worth': 0.63; 'yourself': 0.77; 'bitten': 0.84 |
| 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=//PVfZGSnGenPMY/UsUwwAWjiW0OXUvXEFyQYchJoTs=; b=0PtHYhN4INBnd4zZYVAbnh4gr4S+R4Y8x4zDaQh1clssf+PUs9QvtZhwZRgZ+QLc4v co9yvIfjx1sHqoozk3sGqEw39Mj10nkk89VvOWZzMxQhCAd27uhZggw1w+fD1BeLjqiT NdO3+yGHh2PVXHp1jbOUsrOnCe92u4T5nJuEETFoCbZmqmA9mtdBi+5BEqahlze4q3vq k3hUC0R6JfxWsvglVJFOpeyrzBFc/4FMe4eMjF4P1S//OJ5fR1VW/bsKIXzfdOSLjMOS fmEGbihbUtb23lglwLDqulla5thWUFTtPb6cZFtuu6IwY4ie/IoBV4Xx2LTeFYqhIWAi OzhQ== |
| MIME-Version | 1.0 |
| In-Reply-To | <CANaSqUdmjSNUvX-Urf0U2avVgxpxs47TNTCzEOpYZ4+QZhYzSA@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> <CAPTjJmoEwnrsPsHEO7wRqKhyNd_P3qDpXu3bRfOPfZF0FSY69g@mail.gmail.com> <CANaSqUdmjSNUvX-Urf0U2avVgxpxs47TNTCzEOpYZ4+QZhYzSA@mail.gmail.com> |
| Date | Thu, 25 Oct 2012 03:29:04 +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.2785.1351096146.27098.python-list@python.org> (permalink) |
| Lines | 21 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1351096146 news.xs4all.nl 6903 [2001:888:2000:d::a6]:40784 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:32056 |
Show key headers only | View raw
On Thu, Oct 25, 2012 at 3:10 AM, Zero Piraeus <schesis@gmail.com> wrote: > On 24 October 2012 11:18, Chris Angelico <rosuav@gmail.com> wrote: >> On Thu, Oct 25, 2012 at 2:14 AM, Zero Piraeus <schesis@gmail.com> wrote: >>> [... on return values and side effects ...] >> >> Side point: It's not that it's *bad* code or even bad style; > > It's a matter of taste, sure, but especially for a beginner, it's easy > to find yourself using a method for its return value and forgetting > that it actually does something to the object as well ... and then > getting bitten later. > >> it just isn't the way Python generally does things. > > When in Rome ... :-) Of course, and I'm not disagreeing with the original point made. It's worth writing Pythonic code when writing Python code. It's just not the only way to write. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: classes Chris Angelico <rosuav@gmail.com> - 2012-10-25 03:29 +1100
csiph-web