Antoine Pitrou wrote:
> Well, it sounds like saying classes and functions are closely related
> concepts because both denote callable objects.
I think it's more like saying that methods and functions
are related, and Python does implement methods in terms of
functions.
Similarly, cofunctions are a new concept, but they're
built out of lower-level pieces -- generators and yield-from
-- that are also available separately.
(That could be another Python catchphrase, btw:
"Batteries available separately." :-)
--
Greg