Re: classes

Discussion in 'Python' started by Zero Piraeus, Oct 24, 2012.

  1. Zero Piraeus

    Zero Piraeus Guest

    :

    On 24 October 2012 11:18, Chris Angelico <> wrote:
    > On Thu, Oct 25, 2012 at 2:14 AM, Zero Piraeus <> 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 ... :)

    -[]z.
    Zero Piraeus, Oct 24, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David

    Classes within classes

    David, Jul 21, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    4,925
    David
    Jul 22, 2005
  2. lonelyplanet999
    Replies:
    1
    Views:
    2,193
    VisionSet
    Nov 13, 2003
  3. Carfield Yim
    Replies:
    1
    Views:
    1,392
    Andrew Thompson
    May 31, 2004
  4. Razvan
    Replies:
    11
    Views:
    893
    Andrew Thompson
    Jul 17, 2004
  5. Razvan
    Replies:
    5
    Views:
    11,274
    Dale King
    Jul 27, 2004
Loading...

Share This Page