Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.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.01; 'expressions': 0.07; 'see.': 0.07; 'oh,': 0.09; 'literals.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; '25,': 0.31; 'url:python': 0.33; 'received:google.com': 0.35; 'url:org': 0.36; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'name': 0.63; 'mar': 0.68; '2015': 0.84; 'joel': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=41CmD5WISSMyRz9GMneYbASbO+qmFb+byO0mpW4XI7U=; b=HNkfygNpPa8R/sIHeoShn8jCB2h3HbKMbs5VrbOBiID1015aHMWmXMFvj8/+DXzyMi KNRdeJkeu3VJEa0NpnfIf68Ghy7bwibfTlTd/H/1D7DMG3RuA4BiQImh7zUb0URBI3bC E6HcEVNnTHeKpE2N9bBJm39rBltxsVkqX/epe1rL+JGX7Pcj78Za/L4pZkP1qHFfgDac IchuZYfBRdqVmpkvdHYdVfLNBwjBVJmF2tvLG8gXTuo3fn+3eMJmATNWH16RNIf5h3cF oxoe+Y8Pwwg04ANrks11F7zq1nO1kJRtw8JUCgvkI4DZk6jWWK43b7TWMK+ul8mB7eqC 6YEQ== X-Received: by 10.66.161.161 with SMTP id xt1mr19513565pab.35.1427307784615; Wed, 25 Mar 2015 11:23:04 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <87bnjhyohp.fsf@uriel.graune.org> <87sict0xuu.fsf@uriel.graune.org> From: Ian Kelly Date: Wed, 25 Mar 2015 12:22:23 -0600 Subject: Re: Supply condition in function call To: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 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: 2001:888:2000:d::a6 X-Trace: 1427307792 news.xs4all.nl 2848 [2001:888:2000:d::a6]:47301 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:87960 On Wed, Mar 25, 2015 at 12:17 PM, Joel Goldstick wrote: > Oh, now I see. Do you know about this: > https://docs.python.org/2/library/ast.html#ast.literal_eval As the name suggests, that only evals literals. It won't work for complex expressions like "i + j > 4"