Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.067 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; "shouldn't": 0.07; 'pm,': 0.11; 'wrote:': 0.14; 'already.': 0.16; 'subject:() ': 0.16; 'subject:Python3': 0.16; 'meant': 0.18; 'header:In-Reply-To:1': 0.22; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; 'fri,': 0.29; 'probably': 0.30; 'to:addr:python-list': 0.32; 'someone': 0.33; 'received:209.85': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'user': 0.38; 'but': 0.38; 'no.': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; '2011': 0.62; 'enters': 0.73; 'received:209.85.210.174': 0.84; 'received:mail- iy0-f174.google.com': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=OG9+nyV+lltqlO9HVAKRXSrhhRHN32YNI5wS4cMBqWE=; b=srdH/5yWsveLgGqZ2KCL8qsdfBBYgzTB2mKCFKkI3b4Lr8tShzbS3TRjaGD0XJXnoN tFKLqYiRr32KLYlIJOvi9z+w3lUV1RnDEh0/3KjSv22F9bWRC4soFdVzzdl++LQ5nq5C 4EIIIh3AJHuKzo0Uw4jQjHTJ5gDGlIjAsznsQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=S2pHrrAZp3pwredxjLt0zG+FZ56nLXleyO8tbd2DnEdlTnpotaXXvtkdUyznfJqKde ufTrFQ7pd0Btyn5miDADefvysgIRpO3fFuMoiWLT+zBGYXeR1FGzvkY3ADBwIMZxo6Q/ Ln2uX63qPj64/uUt8/o2KTlL5NVpIcxCR+0hc= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 22 Apr 2011 16:50:59 +1000 Subject: Re: Input() in Python3 From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 7 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1303455062 news.xs4all.nl 81476 [::ffff:82.94.164.166]:40273 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3847 On Fri, Apr 22, 2011 at 4:49 PM, Chris Angelico wrote: > Uhhhh.... NO. NO NO NO. What if someone enters "os.exit()" as their > number? You shouldn't eval() unchecked user input! Whoops, I meant sys.exit() - but you probably knew that already. ChrisA