On Thu, 07 Feb 2008 18:22:03 +0100, Diez B. Roggisch
<[EMAIL PROTECTED]> wrote:
> Can you provide an example of what you are actually after? The
> descriptor-protocol might come to use there.
Thanks for your responses. I have read the Descriptor protocol how-to,
which clarifies method access on o
On Feb 7, 4:10 pm, Berteun Damman <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I was wondering a bit about the differences between methods and
> functions. I have the following:
>
> def wrap(arg):
> print type(arg)
> return arg
>
> class C:
> def f():
> pass
>
> @wrap
> def g
Berteun Damman schrieb:
> Hello,
>
> I was wondering a bit about the differences between methods and
> functions. I have the following:
>
> def wrap(arg):
> print type(arg)
> return arg
>
> class C:
> def f():
> pass
>
> @wrap
> def g():
> pass
>
> def h():
Berteun Damman wrote:
> Hello,
>
> I was wondering a bit about the differences between methods and
> functions. I have the following:
>
> def wrap(arg):
> print type(arg)
> return arg
>
> class C:
> def f():
> pass
>
> @wrap
> def g():
> pass
>
> def h():
>
Hello,
I was wondering a bit about the differences between methods and
functions. I have the following:
def wrap(arg):
print type(arg)
return arg
class C:
def f():
pass
@wrap
def g():
pass
def h():
pass
print type(C.f)
print type(h)
Which gives the fol