Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32051
| 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 | 2012-10-25 02:18 +1100 |
| Subject | Re: classes |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2780.1351091921.27098.python-list@python.org> (permalink) |
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