osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Design: method in class or general function?


Steve D'Aprano <steve+python at pearwood.info> writes:

> On Thu, 7 Sep 2017 07:20 pm, Leam Hall wrote:
>
> > OOP newbie on Python 2.6.
>
> Python 2.6 is ancient, and is missing many nice features. You should
> consider using the latest version, 3.6.

Another, more compelling, reason to follow that advice: Python 2 is in
maintenance-only mode and will receive no support at all in a few years.
It is a dead end.

Python 3 is actively developed and will be supported indefinitely.

Beginners today should prefer Python 3 unless they know that they must
remain on older versions, and even then should correct whatever is
keeping them from moving to the actively-developed language.

-- 
 \              ?Dvorak users of the world flgkd!? ?Kirsten Chevalier, |
  `\                                                rec.humor.oracle.d |
_o__)                                                                  |
Ben Finney