function operators

Terry Reedy tjreedy at home.com
Tue Nov 27 03:54:20 CET 2001


"Hans Nowak" <wurmy at earthlink.net> wrote in message
news:3C02F6A3.941CCB5E at earthlink.net...
> # composable_functions.py
>
> from __future__ import nested_scopes
>
> class ComposableFunction:
>
>     def __init__(self, f):
>         self.f = f
...

Does 2.2 allow one to inherit from type 'function'?  So one could do
this without extra level on indirection?

Terry J. Reedy






More information about the Python-list mailing list