On 19 avr, 16:34, andrew cooke <[EMAIL PROTECTED]> wrote:
> On Apr 18, 4:48 am, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
>
> [...]
>
> > Practically, this means that (amongst other niceties) :
> > - you can define functions outside classes and use them as instance or
> > class methods
> > - y
On 17 Apr., 14:25, andrew cooke <[EMAIL PROTECTED]> wrote:
> PS Is there anywhere that explains why Decorators (in the context of
> functions/methods) are so good?
We had kind of an inverse discussion a while ago when someone asked
about the fate of aspect oriented programming (AOP) in Python. My
On Apr 18, 4:48 am, Bruno Desthuilliers wrote:
[...]
> Practically, this means that (amongst other niceties) :
> - you can define functions outside classes and use them as instance or
> class methods
> - you can add/replaces methods dynamically on a per-class or
> per-instance basis
> - you can ac
andrew cooke a écrit :
> bruno:
>> Ho, and yes : one day, you'll get why it's such a good thing to unite
>> functions and methods !-)
>
> me:
>> PS Is there anywhere that explains why Decorators (in the context of
>> functions/methods) are so good? I've read lots of things saying they
>> are good
bruno:
> Ho, and yes : one day, you'll get why it's such a good thing to unite
> functions and methods !-)
me:
> PS Is there anywhere that explains why Decorators (in the context of
> functions/methods) are so good? I've read lots of things saying they
> are good, but no real justification of why
On 17 avr, 14:25, andrew cooke <[EMAIL PROTECTED]> wrote:
> On Apr 17, 7:12 am, "[EMAIL PROTECTED]"<[EMAIL PROTECTED]> wrote:
>
> [...]
>
> Thanks very much!
>
> These are useful pointers. I'll update my code accordingly.
>
> At one point you pointed out I didn't need parentheses and I agree - I
>
On Apr 17, 7:25 am, andrew cooke <[EMAIL PROTECTED]> wrote:
> On Apr 17, 7:12 am, "[EMAIL PROTECTED]"<[EMAIL PROTECTED]> wrote:
>
> One other question. I had "foo is False" and you said I need
> equality, which is a good point. However, in any other language "not
> foo" would be preferable. I wa
On Apr 17, 7:12 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
[...]
Thanks very much!
These are useful pointers. I'll update my code accordingly.
At one point you pointed out I didn't need parentheses and I agree - I
was using them to avoid having a line continuation backslash (I think
I r
On 17 avr, 04:27, andrew cooke <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thanks for the help a couple of days ago. I completed what I was
> doing and wrote a summary which I've posted
> athttp://acooke.org/cute/PythonMeta0.html
> (it's kind of long to post here). I hope it might be useful to
> someon