Re: [Python-ideas] Fwd: Define a method or function attributeoutside of a class with the dot operator

2017-02-11 Thread Steven D'Aprano
On Fri, Feb 10, 2017 at 06:17:54PM +0200, Markus Meskanen wrote: > Well yes, but I think you're a bit too fast on labeling it a mistake to use > monkey patching... More importantly, I think we're being a bit too quick to label this technique "monkey-patching" at all. Monkey-patching (or MP for br

Re: [Python-ideas] Fwd: Define a method or function attributeoutside of a class with the dot operator

2017-02-10 Thread Sven R. Kunze
Another point of view: Some call it monkeypatching. Others call it configuration. There's room for both views and I don't see anything wrong with configuration using this kind of feature. Sven On 10.02.2017 17:17, Markus Meskanen wrote: Well yes, but I think you're a bit too fast on labeli

Re: [Python-ideas] Fwd: Define a method or function attributeoutside of a class with the dot operator

2017-02-10 Thread Paul Moore
On 10 February 2017 at 16:09, Markus Meskanen wrote: > But if people are gonna do it anyways with the tools provided (monkey > patching), why not provide them with better tools? Because encouraging and making it easier for people to make mistakes is the wrong thing to do, surely? Paul __

Re: [Python-ideas] Fwd: Define a method or function attributeoutside of a class with the dot operator

2017-02-10 Thread Markus Meskanen
Well yes, but I think you're a bit too fast on labeling it a mistake to use monkey patching... On Feb 10, 2017 18:15, "Paul Moore" wrote: On 10 February 2017 at 16:09, Markus Meskanen wrote: > But if people are gonna do it anyways with the tools provided (monkey > patching), why not provide th

Re: [Python-ideas] Fwd: Define a method or function attributeoutside of a class with the dot operator

2017-02-10 Thread Markus Meskanen
blem worse by providing > first-class tools to do it. > > Top-posted from my Windows Phone > -- > From: Chris Angelico > Sent: ‎2/‎10/‎2017 8:27 > To: Python-Ideas > Subject: Re: [Python-ideas] Fwd: Define a method or function > attributeout

Re: [Python-ideas] Fwd: Define a method or function attributeoutside of a class with the dot operator

2017-02-10 Thread Steve Dower
it. Top-posted from my Windows Phone -Original Message- From: "Chris Angelico" Sent: ‎2/‎10/‎2017 8:27 To: "Python-Ideas" Subject: Re: [Python-ideas] Fwd: Define a method or function attributeoutside of a class with the dot operator On Sat, Feb 11, 2017 at 1:1