Extending the 'function' built-in class

Mark Janssen dreamingforward at gmail.com
Sun Dec 1 20:26:50 EST 2013


> Hi, I can't figure out how I can extend the 'function' built-in class. I tried:
>   class test(function):
>     def test(self):
>       print("test")
> but I get an error. Is it possible ?

It has to do with differing models of computation, and python isn't
designed for this.  Perhaps you're searching for the ultimate lambda?.
-- 
MarkJ
Tacoma, Washington



More information about the Python-list mailing list