BASIC vs Python
Mike Meyer
mwm at mired.org
Tue Dec 21 21:19:01 EST 2004
Leif K-Brooks <eurleif at ecritters.biz> writes:
> Mike Meyer wrote:
>> They do have a first-class function-like object called an agent. But
>> to use a standard method as an agent, you have to wrap it.
>
> Just curious, but how does a method get wrapped in an agent if methods
> aren't first-class objects? Subclassing the agent base class with a
> new run method or something?
No, an agent deals with the method. All you can do with methods are
invoke them, are wrap them as agents. No assignment or creation of
subobjects of the function or anything like that.
<mike
--
Mike Meyer <mwm at mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
More information about the Python-list
mailing list