Path: csiph.com!usenet.pasdenom.info!gegeweb.org!aioe.org!news.stack.nl!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.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'parameter': 0.07; 'received:209.85.212.54': 0.09; 'dec': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'readable': 0.16; 'subject:patch': 0.16; 'subject:possible': 0.16; 'wrote:': 0.17; 'patch': 0.24; 'idea': 0.24; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'marc': 0.29; 'subject:like': 0.29; 'function': 0.30; 'controls': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'add': 0.36; 'two': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'ever': 0.63; 'more': 0.63; 'subject:this': 0.84; "it'd": 0.84 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:to :content-type; bh=vQs+0U7AFihNX029JZeAUZv//DlWuY5DXGKIzCgsnLQ=; b=hTixQmtaRpfWeJmtxxYvVTHNEQI3EPI0pN/eFGi1MX78l/7Qti1IHuJImgcr4DeY4j 7ymHee9cnsGSlro2H1jhvt/PSB586sfvnQD/RAJslgowN1jr3rfQTfuQqAQhXFZR5OhM ZOoRrunQubWhZ+vLDR5/p8Dw0tEViZ7g3rlRp5G3jVsTAIJv47IbNThq1bvrOWn8NEdc bcZDsjzLOV8Hcol7rk20bVlv4D+FonEYgWnCjcv8Axs4b0fZkiJj/sdw4zDm5j47Ypfx ShBGe0dyrZOmW9VxGRcU3LyT4wK5578FGXUNH7U+zchZSy2663mBFCyRmG/zpV61Ls3l xA8g== MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 18 Dec 2012 21:34:06 +1100 Subject: Re: Is it possible monkey patch like this? 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.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: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1355828213 news.xs4all.nl 6977 [2001:888:2000:d::a6]:46814 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35048 On Tue, Dec 18, 2012 at 9:26 PM, Marc Aymerich wrote: > Any other idea on how to monkey patch those two conditionals ? Would it be plausible to simply add a parameter to the function that controls its behaviour? It'd be a lot more readable than fiddling from the outside ever would. ChrisA