inline functions or macros?

Maciej Kalisiak mac at
Sun Dec 2 22:06:25 CET 2001

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?

Maciej Kalisiak|mac@] Shaw's Principle: Build a system that even a fool can|www.] use, and only a fool will want to use it.] 

More information about the Python-list mailing list