Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.040 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.01; 'subject:Python': 0.05; 'from:addr:yahoo.co.uk': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'do,': 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'language': 0.19; 'lawrence': 0.22; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'language.': 0.32; 'but': 0.36; 'there': 0.36; 'to:addr :python-list': 0.36; 'received:org': 0.37; 'to:addr:python.org': 0.40; 'mark': 0.40; 'safe': 0.63; 'our': 0.64; 'believe': 0.66; 'here': 0.66; 'url:r': 0.67; 'subject': 0.70; 'led': 0.72; 'pythonistas,': 0.84; 'url:comments': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Sandboxing Python Date: Sun, 23 Aug 2015 00:25:59 +0100 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-24-212-5.ppp.as43234.net X-Mozilla-News-Host: news://news.gmane.org:119 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1440285982 news.xs4all.nl 23723 [2001:888:2000:d::a6]:59565 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:95569 I was always led to believe that the subject was a difficult thing to do, but here https://www.reddit.com/r/learnpython/comments/3huz4x/how_to_do_math_inside_raw_input/ is a safe solution in only 23 characters, or are there any discernable flaws in it? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence