Re: [Tutor] Python 3.4.1 question for Mac users

2014-08-29 Thread Al Bull
-Original Message- From: Tutor [mailto:tutor-bounces+a.bull=pubdmgroup@python.org] On Behalf Of Chris “Kwpolska” Warrick Sent: Friday, August 29, 2014 11:40 AM To: Richard Dillon Cc: tutor@python.org Subject: Re: [Tutor] Python 3.4.1 question for Mac users Sorry for the errorneous

Re: [Tutor] Python 3.4.1 question for Mac users

2014-08-29 Thread Chris “Kwpolska” Warrick
Sorry for the errorneous quote-only response, gmail managed to send it without me typing a thing. On Fri, Aug 29, 2014 at 5:01 PM, Richard Dillon wrote: > infile = open(r'\OS\Users\richarddillon\Desktop\my_file','r') On the Mac, you don’t need to specify a drive there; the main drive is just

Re: [Tutor] Python 3.4.1 question for Mac users

2014-08-29 Thread Chris “Kwpolska” Warrick
On Fri, Aug 29, 2014 at 5:01 PM, Richard Dillon wrote: > I’m teaching myself Python 3.4.1 on a Mac and the book I’m using is written > for Windows users. > > I’m trying to open a file on the desktop and I created a path using the > example in the book. > > > > Any Mac users out there with a soluti

[Tutor] Python 3.4.1 question for Mac users

2014-08-29 Thread Richard Dillon
I’m teaching myself Python 3.4.1 on a Mac and the book I’m using is written for Windows users. I’m trying to open a file on the desktop and I created a path using the example in the book. Any Mac users out there with a solution? My main drive is named “OS”. Here’s my code: def main()