Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'ast': 0.09; 'parsed': 0.09; 'psf,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:2.7': 0.09; 'thread': 0.10; 'python': 0.10; 'python.': 0.11; 'jan': 0.11; 'suggest': 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'rejection': 0.16; 'subject:non': 0.16; 'suggestion.': 0.16; 'wrote:': 0.16; 'implementing': 0.18; 'mechanism': 0.18; 'shell': 0.18; 'input': 0.18; 'issue.': 0.20; 'posted': 0.21; 'filtering': 0.22; 'trying': 0.22; 'code.': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'idea': 0.28; 'extending': 0.29; 'purposes.': 0.29; 'raise': 0.29; 'code': 0.30; 'core': 0.32; 'idle': 0.33; 'maintained': 0.33; 'similar': 0.33; 'could': 0.35; 'asking': 0.35; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'thought': 0.37; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'reach': 0.61; 'different': 0.63; 'teaching': 0.69; 'complaint': 0.84; 'extensions.': 0.84; 'received:fios.verizon.net': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Should non-security 2.7 bugs be fixed? Date: Sun, 19 Jul 2015 05:11:25 -0400 References: <7083e494-6192-4acb-aea9-216d858171bc@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-98-114-97-173.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: <7083e494-6192-4acb-aea9-216d858171bc@googlegroups.com> 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1437297112 news.xs4all.nl 2855 [2001:888:2000:d::a6]:56510 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:94108 On 7/18/2015 11:52 PM, Rustom Mody wrote: among other things, a complaint about rejection of his desire for a mechanism for subsetting Python for teaching purposes. Response 2: Core python is the most conservatively maintained part of Python. Trying to change it radically, as distributed by PSF, is practically asking for rejection. For subsetting, I suggest a different tack: filtering input before sending it to python and raise if it contains forbidden code. After Response 1, I posted on the Devanagari thread a similar suggestion. I also posted an idea for implementing the idea by extending the internal reach of Idle extensions. I limited the idea to the interactive shell because I could not immediately think of a use for filtering code before compiling. Then I thought of this issue. Among other things, code could be tokenized or parsed to an ast for filtering. -- Terry Jan Reedy