Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'win32': 0.03; 'convention.': 0.07; 'cc:addr:python-list': 0.11; 'python': 0.11; 'windows': 0.15; '(both': 0.16; '-tkc': 0.16; 'command-line': 0.16; 'eof': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'platforms': 0.22; 'cc:addr:python.org': 0.22; 'alternate': 0.24; 'tend': 0.24; 'cc:2**0': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'unix': 0.29; "doesn't": 0.30; 'said,': 0.30; 'noticed': 0.34; "can't": 0.35; 'but': 0.35; 'doing': 0.36; 'charset:us-ascii': 0.36; 'though,': 0.39; 'box,': 0.64; 'provide': 0.64; 'to:addr:gmail.com': 0.65; 'within': 0.65; 'minutes': 0.67; '(standard': 0.84; 'received:50.22': 0.84 Date: Tue, 8 Jul 2014 11:40:03 -0500 From: Tim Chase To: Chris Angelico Subject: Re: open() and EOFError In-Reply-To: References: <53ba11fc$0$29985$c3e8da3$5496439d@news.astraweb.com> <53ba538d$0$2926$c3e8da3$76491128@news.astraweb.com> <20140708102033.13efb3a4@bigbox.christie.dr> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1404837666 news.xs4all.nl 2931 [2001:888:2000:d::a6]:47669 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74184 On 2014-07-09 01:24, Chris Angelico wrote: > I can't think of any Windows-native programs that ask for EOF. Only > those which came from POSIX platforms do it. That said, though, > Windows doesn't tend to encourage interactive command-line programs > at all, so you may as well just follow the Unix convention. And within the last 10 minutes doing some work on a Win32 box, I noticed that both the "wmic" console (standard since at least XP I believe) and Python use EOF to quit (both provide alternate methods of quitting, but EOF is fast & easy). -tkc