Received: by 10.180.94.98 with SMTP id db2mr177853wib.2.1348299057815; Sat, 22 Sep 2012 00:30:57 -0700 (PDT) Path: q11ni17439258wiw.1!nntp.google.com!goblin1!goblin3!goblin.stu.neva.ru!news.franciliens.net!news.muarf.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed1-a.proxad.net!nnrp2-2.free.fr!not-for-mail From: Franck Ditter Newsgroups: comp.lang.python Subject: Re: Reading a file in IDLE 3 on Mac-Lion Organization: SN distribution References: <505ccdc5$0$6919$e4fe514c@news2.news.xs4all.nl> MIME-Version: 1.0 User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Date: Sat, 22 Sep 2012 09:30:57 +0200 Message-ID: Lines: 29 NNTP-Posting-Date: 22 Sep 2012 09:30:57 CEST NNTP-Posting-Host: 82.242.216.186 X-Trace: 1348299057 news-2.free.fr 1970 82.242.216.186:49166 X-Complaints-To: abuse@proxad.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit In article <505ccdc5$0$6919$e4fe5...@news2.news.xs4all.nl>, Hans Mulder wrote: > On 21/09/12 16:29:55, Franck Ditter wrote: > > I create a text file utf-8 encoded in Python 3 with IDLE (Mac Lion). > > It runs fine and creates the disk file, visible with > > TextWrangler or another. > > But I can't open it with IDLE (its name is greyed). > > IDLE is supposed to read utf-8 files, no ? > > This works on Windows-7. > > There's a little pop-menu below the list of files. > > It allows you to choose which kind of files you want to open. > By default, it is set to "Python files", which greys out all > files, except those with a '.py' or '.pyw' extension. > Setting it to "Text files" should help, or else try "All files". > > Hope this helps > > -- HansM Alas this pop-up menu is for Windows only, I don't find it on MacOS-X. My files are xxx.dat files and not visible, even text only (numeric data). This can be filed as something to do ! Thanks, franck