Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32051 > unrolled thread

Re: classes

Started byChris Angelico <rosuav@gmail.com>
First post2012-10-25 02:18 +1100
Last post2012-10-25 02:18 +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.


Contents

  Re: classes Chris Angelico <rosuav@gmail.com> - 2012-10-25 02:18 +1100

#32051 — Re: classes

FromChris Angelico <rosuav@gmail.com>
Date2012-10-25 02:18 +1100
SubjectRe: classes
Message-ID<mailman.2780.1351091921.27098.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web