Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'classes,': 0.05; 'obsolete': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'seemed': 0.09; 'starter': 0.09; 'runs': 0.10; 'python': 0.11; 'jan': 0.12; 'language,': 0.12; 'easily,': 0.16; 'new-style': 0.16; 'non- english': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subclass': 0.16; 'subject:Early': 0.16; 'wrote:': 0.18; 'subject:project': 0.19; 'install': 0.23; 'header:User-Agent:1': 0.23; 'certainly': 0.24; 'instead.': 0.24; 'fine': 0.24; "i've": 0.25; 'source': 0.25; 'class.': 0.26; 'define': 0.26; 'second': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'fixed': 0.29; 'am,': 0.29; 'tim': 0.29; 'especially': 0.30; 'gives': 0.31; 'another.': 0.31; 'chase': 0.31; 'class': 0.32; 'guess': 0.33; 'mac': 0.33; 'older': 0.33; "can't": 0.35; 'classes': 0.35; 'there': 0.35; 'version': 0.36; 'really': 0.36; 'programming,': 0.36; 'words,': 0.36; 'subject:?': 0.36; 'should': 0.36; 'too': 0.37; 'starting': 0.37; 'to:addr:python-list': 0.38; 'rather': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'greatest': 0.60; 'received:173': 0.61; 'email addr:gmail.com': 0.63; 'such': 0.63; 'great': 0.65; 'income': 0.65; 'needs,': 0.65; 'media': 0.66; 'hours': 0.66; 'latest': 0.67; "'object'": 0.84; '10.4': 0.84; '2.5.': 0.84; 'learn.': 0.84; 'received:fios.verizon.net': 0.84; 'afford': 0.91; 'retired': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Early retirement project? Date: Tue, 21 Jan 2014 12:34:44 -0500 References: <20140121053801.60f8cf11@bigbox.christie.dr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-254-207.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <20140121053801.60f8cf11@bigbox.christie.dr> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390325699 news.xs4all.nl 2911 [2001:888:2000:d::a6]:60038 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64428 On 1/21/2014 6:38 AM, Tim Chase wrote: > On 2014-01-21 00:00, xeysxeys@gmail.com wrote: >> Well, I retired early, and I guess now I've got some spare time to >> learn about programming, which always seemed rather mysterious. I >> am using an old mac as my main computer, and it runs os x 10.4 is >> this too old? It fills my needs, and I am on a fixed income and >> can't really afford to buy another. I think python would be a good >> starter language, based on what I've read on the net. > > It's certainly a great way to consume lots of hours :) > > Mac OS X 10.4 should come with an older version of Python > out-of-the-box. Someone else said that it comes with 2.5. That will be fine for many purposed. If you do use that, always make any classes you define a subclass of 'object' if nothing else. In other words, class MyClass(object): ... # instead of class MyClass: ... In Python 2, the second gives you an 'old-style' or 'classic' class. You do not need to learn about those. In Python 3, both forms give you new-style classes, which is what you should learn. There are a few other obsolete features to avoid, such as using strings for exceptions. > The install media should also include XCode if you > want to download the latest & greatest version of Python and install > that from source instead. If you can do that easily, I recommend starting with the latest Python 3, especially if you want to work with non-English (non-ascii) characters. -- Terry Jan Reedy