[EMAIL PROTECTED] a écrit :
On Aug 22, 12:48 am, Bruno Desthuilliers
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] a écrit :
(snip)
Of course, a function in a
class is also know as a method.
Less obvious but still wrong !-)
I wish the authors of the Python books would get a clue then.
Bruno Desthuilliers [EMAIL PROTECTED]
wrote:
Of course, a function in a
class is also know as a method.
Less obvious but still wrong !-)
I wish the authors of the Python books would get a clue then.
I'd think that at least some authors of some Python books would explain
all this
In the program below, I want this instance to end up calling repmeth
whenever inst.m1 is called. As it is now, I get this error:
Hello from init
inst = __main__.CC instance at 0x402105ec
Traceback (most recent call last):
File ./foo9.py, line 17, in ?
inst.m1()
TypeError: repmeth()
On Aug 24, 11:02 am, Steven W. Orr [EMAIL PROTECTED] wrote:
In the program below, I want this instance to end up calling repmeth
whenever inst.m1 is called. As it is now, I get this error:
Hello from init
inst = __main__.CC instance at 0x402105ec
Traceback (most recent call last):
File
On Friday, Aug 24th 2007 at 09:12 -0700, quoth [EMAIL PROTECTED]:
=On Aug 24, 11:02 am, Steven W. Orr [EMAIL PROTECTED] wrote:
= In the program below, I want this instance to end up calling repmeth
= whenever inst.m1 is called. As it is now, I get this error:
=
= Hello from init
= inst =
Steven W. Orr wrote:
Sorry. I need repmeth to have self passed to it automatically if it's
called. I didn't mean to obfuscate the problem by not making a reference
to self in repmeth.
Am I being clear?
Sort of. Maybe you fare better if you state what you want to achieve,
instead of
Steven W. Orr wrote:
On Friday, Aug 24th 2007 at 09:12 -0700, quoth [EMAIL PROTECTED]:
=On Aug 24, 11:02 am, Steven W. Orr [EMAIL PROTECTED] wrote:
= In the program below, I want this instance to end up calling repmeth
= whenever inst.m1 is called. As it is now, I get this error:
=
= Hello
On Friday, Aug 24th 2007 at 12:26 -0400, quoth Steven W. Orr:
=On Friday, Aug 24th 2007 at 09:12 -0700, quoth [EMAIL PROTECTED]:
=
==On Aug 24, 11:02 am, Steven W. Orr [EMAIL PROTECTED] wrote:
== In the program below, I want this instance to end up calling repmeth
== whenever inst.m1 is called.
Steven W. Orr wrote:
Ok. I have a collection of classes that are produced by a factory. They
all inherit from a baseclass. One (maybe more) of the classes inherits a
method that he shouldn't. All I want is to be able to change that
particular class so that he will have the special method
Steven W. Orr a écrit :
In the program below, I want this instance to end up calling repmeth
whenever inst.m1 is called. As it is now, I get this error:
Hello from init
inst = __main__.CC instance at 0x402105ec
Traceback (most recent call last):
File ./foo9.py, line 17, in ?
[EMAIL PROTECTED] a écrit :
On Aug 24, 11:02 am, Steven W. Orr [EMAIL PROTECTED] wrote:
In the program below, I want this instance to end up calling repmeth
whenever inst.m1 is called. As it is now, I get this error:
Hello from init
inst = __main__.CC instance at 0x402105ec
Traceback (most
Steven W. Orr wrote:
On Friday, Aug 24th 2007 at 12:26 -0400, quoth Steven W. Orr:
=On Friday, Aug 24th 2007 at 09:12 -0700, quoth [EMAIL PROTECTED]:
=
==On Aug 24, 11:02 am, Steven W. Orr [EMAIL PROTECTED] wrote:
== In the program below, I want this instance to end up calling repmeth
==
On Aug 22, 12:48 am, Bruno Desthuilliers
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] a écrit :
On Aug 24, 11:02 am, Steven W. Orr [EMAIL PROTECTED] wrote:
In the program below, I want this instance to end up calling repmeth
whenever inst.m1 is called. As it is now, I get this error:
[EMAIL PROTECTED] wrote:
I'm not going to help with these class / instance / whatever any more
and leave it to all you professionals.
Wrong again. Stick your neck out, look like an ass, and then
learn--alot. That's what I do.
Your misinformation will be corrected, even if you are chastised in
14 matches
Mail list logo