Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'syntax': 0.04; '(even': 0.05; 'configure': 0.05; 'subject:Python': 0.06; 'compiler': 0.07; 'preference': 0.07; 'suppose': 0.07; 'appropriate.': 0.09; 'fink': 0.09; 'ide': 0.09; 'skip:/ 10': 0.09; 'weeks,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'suggest': 0.14; 'windows': 0.15; '"python"': 0.16; "(it's": 0.16; '12:07,': 0.16; '2.)': 0.16; '2.7.2': 0.16; 'adult': 0.16; 'code),': 0.16; 'finds': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'high-school': 0.16; 'idle.': 0.16; 'macosx': 0.16; 'macs': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'open-source,': 0.16; 'pane': 0.16; 'pane)': 0.16; 'personally,': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'student,': 0.16; 'wxpython': 0.16; 'discussions': 0.16; 'student': 0.16; 'url:)': 0.16; 'wrote:': 0.18; 'shell': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; '2.x': 0.24; 'choices': 0.24; 'cheers,': 0.24; "haven't": 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'source': 0.25; 'options': 0.25; 'handling': 0.26; 'developing': 0.27; 'header:In-Reply- To:1': 0.27; 'installed': 0.27; 'tried': 0.27; 'appreciated.': 0.29; 'unix': 0.29; "doesn't": 0.30; 'experiences': 0.30; 'programming.': 0.30; "i'm": 0.30; '(my': 0.31; '3.x': 0.31; 'continues': 0.31; 'linux.': 0.31; 'skip:- 30': 0.32; 'open': 0.33; 'linux': 0.33; 'beginning': 0.33; 'mac': 0.33; 'skip:_ 10': 0.34; 'could': 0.34; 'subject: (': 0.35; "can't": 0.35; 'something': 0.35; 'editor': 0.35; 'but': 0.35; 'building': 0.35; 'there': 0.35; 'idle': 0.36; 'received:com.au': 0.36; 'done': 0.36; 'charset:us-ascii': 0.36; 'similar': 0.36; 'url:org': 0.36; 'so,': 0.37; 'two': 0.37; 'being': 0.38; 'ahead': 0.38; 'others.': 0.38; 'received:211': 0.38; 'whatever': 0.38; 'skip:- 10': 0.38; 'obtain': 0.39; 'sure': 0.39; 'system.': 0.39; 'easy': 0.60; 'most': 0.60; 'free': 0.61; 'affect': 0.61; 'new': 0.61; 'browser': 0.61; 'john': 0.61; 'first': 0.61; 'content- disposition:inline': 0.62; 'high': 0.63; 'personal': 0.63; 'myself': 0.63; 'mountain': 0.65; 'here': 0.66; 'side': 0.67; 'person,': 0.68; 'opinions': 0.70; 'informed': 0.78; '$42': 0.84; 'atop': 0.84; 'beside': 0.84; 'choices.': 0.84; 'hitch': 0.84; 'lightweight': 0.84; 'macbook': 0.84; 'refuses': 0.84; 'ships': 0.84; 'subject:MacBook': 0.84; 'visit,': 0.84; 'wrath': 0.84; '2013,': 0.91; 'refuse': 0.93 Date: Mon, 28 Oct 2013 14:56:09 +1100 From: Cameron Simpson To: John Ladasky Subject: Re: Python on a MacBook Pro (not my machine) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0799708c-59d5-41c2-9fcc-24b7ca87386e@googlegroups.com> User-Agent: Mutt/1.5.21 (2010-09-15) References: <0799708c-59d5-41c2-9fcc-24b7ca87386e@googlegroups.com> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=bpB1Wiqi c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=LcaDllckn3IA:10 a=HjaLidEMTt8A:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=-INdJDQBSKIA:10 a=pcLIrrrKAAAA:8 a=lRvR6imEAAAA:8 a=J8YEAPM8AAAA:8 a=hoOFX31OzhbnGmgCskIA:9 a=CjuIK1q_8ugA:10 a=ftFGBYpk1mUA:10 Cc: python-list@python.org 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: 47 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382933911 news.xs4all.nl 15908 [2001:888:2000:d::a6]:44664 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57784 On 26Oct2013 12:07, John Ladasky wrote: > My side job as a Python tutor continues to grow. In two weeks, I will start working with a high-school student who owns a MacBook Pro. > > I have had students with Linux systems (my preference) and Windows systems before, but not Macs. On my first visit, I set up each student's computer with Python 3.x, and SciTE for editing. I would like to do something similar for my Mac student, and I want to make sure that it goes smoothly. > > My first question is whether Mac OS X ships with Python 2.x, and whether I need to be aware of any compatibility issues when I install 3.x. (It's 2013, and my students are new to programming. I refuse to hitch them to Python 2.) MacOSX ships with Python 2.x. My Mountain Lion macbook here has 2.7.2 as /usr/bin/python. I install MacPorts on my Macs (alternatives include Fink and HomeBrew, and I belive you can install them side by side; Fink uses /sw, MacPorts /opt/local and I haven't tried HomeBrew). I have /opt/local/bin in my $PATH ahead of /usr/bin, so it finds the MacPorts "python" (2.7.5) and "python3.2" (3.2.5) and "python3.3" (3.3.2). > Second: it doesn't look like I will be able to obtain SciTE for this student. SciTE is free for Windows and Linux. Apparently, it's $42 for Mac OSX? If I recall, SciTE is open-source, so I suppose that I could compile the source myself. But since it is not my computer, and I'm being paid for my time, and I haven't done much with Macs (to say nothing of building from source code), I don't think that this is appropriate. Building from source for most projects is much like Linux or any other UNIX system. configure --prefix=/usr/local # or --prefix=/usr/local/app-version, my personal preference make && make install && echo OK You will need a compiler (your student needs XCode installed if they haven't already; it is free). MacPorts needs XCode anyway, as do the others. > I know, we can use IDLE. I continue to find IDLE clumsy. Also, there are potential issues with event handling which arise when you use IDLE. I am working with an adult professional who is developing a Telnet application, which refuses to cooperate with IDLE/Tk. I had similar issues myself with wxPython applications I was writing. While these issues may not affect a beginning student, these experiences have informed my choices. > > So, what other free and lightweight editing options do I have for a Mac? I have found a few (fairly old) discussions on comp.lang.python which suggest Eric (http://eric-ide.python-projects.org/) and Editra (http://editra.org/). Opinions on these and other choices are appreciated. Personally, I use terminals (iTerm2 on a Mac in preference to MacOSX's terminal, with a shell pane beside the editor pane) and vim with syntax highlighting. And a web browser open on a local copy of the 2.x or 3.x HTML docs - I keep one of each on my desktop for easy access. I'm not an IDE person, so I can't speak to those (even IDLE). Cheers, -- Cameron Simpson You want to tempt the wrath of the whatever from high atop the thing? - Toby Zeigler, _The_West_Wing_ - Election Night