inline functions or macros?

Michael Kelly mkelly2002NOSPAM at earthlink.net
Sun Dec 2 16:36:47 EST 2001


On Sun, 02 Dec 2001 21:06:25 GMT, Maciej Kalisiak
<mac at dgp.toronto.edu> wrote:

>I seem to recall reading that function calls in Python are somewhat
>expensive.  I come from a C++ background, and there this is usually
>dealt with by defining frequently used small functions as 'inline'.
>Is there something similar in Python?

There's a "lamda" inline function definition
mechanism but I'm new to Python so I
don't know if it's run-time efficient or
just a syntactic convenience yet.


Mike

--

"I don't want to belong to any club that would have me as a member."
    -- Groucho Marx



More information about the Python-list mailing list