Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.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.120 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.77; '*S*': 0.01; 'string': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'documented': 0.24; 'string,': 0.24; 'cc:2**0': 0.24; 'pass': 0.26; 'header:In-Reply-To:1': 0.27; 'received:209.85.217': 0.29; 'message-id:@mail.gmail.com': 0.30; 'prints': 0.31; 'url:python': 0.33; 'received:209.85': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'received:209': 0.37; 'being': 0.38; 'url:library': 0.38; 'expect': 0.39; 'either': 0.39; 'dave': 0.60; 'march': 0.61; 'took': 0.61; 'here:': 0.62; 'angel': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=vNJh0DuEiqvQUOPNgGlKPrHZ66nlfhm1lPAuq7+Ipt0=; b=MfIxIqC6/BdJCEnt+yUDBLzuLOIe0QpNiXlU3HyZ0PYnIG5KnQ7H2+KtYzyYaLAqTF hwbl0VachoNXJiWGvyCUlBvnseozdMocNTVqM+Nf508wynn0SJiJt+YlF4BuQnFi15bb rtrL9TQIIigxQaej0q4/3big3qvVwIGLQtwFxywlJkBOrKscGVulswbKK7cmRFqra9Fc 2RvGRhPuRSJ2Lag3tPGYqL/PlDaDOJEUIEz0jy1l0u1XU6BNFyXr7fNwno6aO6IVLyJ2 uD4Ha2QbaHQ6CZtKGdbfCIficMDoR7zduE13p1olcNX1v3atjhzZ7cthuJcoKggoqpYg UN1g== MIME-Version: 1.0 X-Received: by 10.112.103.67 with SMTP id fu3mr4811427lbb.46.1364770779106; Sun, 31 Mar 2013 15:59:39 -0700 (PDT) In-Reply-To: <5158B9EB.3050307@davea.name> References: <9dla2a-kql.ln1@satorlaser.homedns.org> <5ce10a13-be58-4548-85df-e1d865d3304e@googlegroups.com> <17da5afc-7a9b-40ea-a544-6012dfeef3ce@googlegroups.com> <95807259-513b-430a-80d1-2db853426159@googlegroups.com> <5158B9EB.3050307@davea.name> Date: Sun, 31 Mar 2013 23:59:38 +0100 Subject: Re: Sudoku From: Arnaud Delobelle To: Dave Angel Content-Type: text/plain; charset=UTF-8 Cc: Python 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364770787 news.xs4all.nl 6909 [2001:888:2000:d::a6]:54207 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42434 On 31 March 2013 23:34, Dave Angel wrote: >[...] With my Python > 2.7.2, exit(something) with something being a string prints the string and > then exits. Nowhere have I seen that documented, and I thought it either > took an int or nothing. It is documented, just not exactly where you'd expect it (exit is a constant, not a function): http://docs.python.org/2/library/constants.html#constants-added-by-the-site-module As for the behaviour when you pass a string, it's documented here: http://docs.python.org/2/library/exceptions.html#exceptions.SystemExit -- Arnaud