Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2a.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.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'exception,': 0.09; 'cc:addr:python-list': 0.11; 'subject:Help': 0.11; 'jan': 0.12; 'exception?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:python': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'this?': 0.23; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'getting': 0.31; 'run': 0.32; 'message.': 0.35; 'subject:with': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'wrong': 0.37; 'pm,': 0.38; 'expect': 0.39; 'entire': 0.61; "you're": 0.61; 'show': 0.63; '2015': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=cdFS0HJO4St+GcOaveE1/NGvvwGZFqWHWn8LQuXoDBs=; b=XweD3d0G6xKNnHbdmPRQW2Rdj9xmHQncX3iVrk7pDNp9j6c10d2/m0rRkqr6AG1reJ kW61pe/UM5uRXMzL7vsxvmHgtrm2/boJXO3GUxj1O03DP+Kie1UTavNiTKgfyw1+CUVG CV/LG2hzCvl7pc5TrPj17WrCnoHnlTUWuAyWm/jgA9CO2TKPBuF/7hJLri10G9IsL7A2 L7Cx9r+6M3EG6zQO1XGN3AnQ0tuiFasIYHXw5z/f5Bhzp5xGGJS2TzgD330OtZbCxC9M wSA9MDfBVtAweaz3H+yCgfojQ7kyhnHTWCVEDohFl8nX+JcwLkYyu3OqAWkNDkqR/F9j EjIw== MIME-Version: 1.0 X-Received: by 10.42.94.14 with SMTP id z14mr30020577icm.59.1420372024021; Sun, 04 Jan 2015 03:47:04 -0800 (PST) In-Reply-To: <60e62263-6cd1-48b9-acbc-f1a0b947b8c9@googlegroups.com> References: <60e62263-6cd1-48b9-acbc-f1a0b947b8c9@googlegroups.com> Date: Sun, 4 Jan 2015 22:47:03 +1100 Subject: Re: Help with map python 2 From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1420372032 news.xs4all.nl 2869 [2001:888:2000:d::a6]:34265 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:83196 On Sun, Jan 4, 2015 at 10:34 PM, flebber wrote: > Just getting something wrong > list(map((lambda x: x * -1 if (x%2 != 0)), series)) Okay, and what happens when you run this? Do you get an exception? If so (and I fully expect you will), copy and paste the entire exception traceback and message. That's the best way to show what's going wrong. If you're not getting an exception, what do you get that's wrong? ChrisA