Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32056 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2012-10-25 03:29 +1100 |
| Last post | 2012-10-25 03:29 +1100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: classes Chris Angelico <rosuav@gmail.com> - 2012-10-25 03:29 +1100
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2012-10-25 03:29 +1100 |
| Subject | Re: classes |
| Message-ID | <mailman.2785.1351096146.27098.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web