Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35048
| 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 | <rosuav@gmail.com> |
| 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 | <bbfb8154-e283-4961-9680-9d819bf00d01@googlegroups.com> |
| References | <bbfb8154-e283-4961-9680-9d819bf00d01@googlegroups.com> |
| Date | Tue, 18 Dec 2012 21:34:06 +1100 |
| Subject | Re: Is it possible monkey patch like this? |
| From | Chris Angelico <rosuav@gmail.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1014.1355828213.29569.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On Tue, Dec 18, 2012 at 9:26 PM, Marc Aymerich <glicerinu@gmail.com> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is it possible monkey patch like this? Marc Aymerich <glicerinu@gmail.com> - 2012-12-18 02:26 -0800 Re: Is it possible monkey patch like this? Chris Angelico <rosuav@gmail.com> - 2012-12-18 21:34 +1100 Re: Is it possible monkey patch like this? Peter Otten <__peter__@web.de> - 2012-12-18 13:35 +0100 Re: Is it possible monkey patch like this? Terry Reedy <tjreedy@udel.edu> - 2012-12-18 11:49 -0500 Re: Is it possible monkey patch like this? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-12-19 00:54 +0000
csiph-web