BASIC vs Python

Mike Meyer mwm at
Wed Dec 22 03:19:01 CET 2004

Leif K-Brooks <eurleif at> 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 Meyer <mwm at>
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

More information about the Python-list mailing list