signum() not in math?

Bengt Richter bokr at accessone.com
Sat Oct 13 21:53:24 EDT 2001


On 13 Oct 2001 11:31:33 -0700, Paul Rubin <phr-n2001d at nightsong.com> wrote:

>"Tim Peters" <tim.one at home.com> writes:
>> I've used a lot of languages over the endlessly tiring <wink> years, but
>> have never seen another language community so keen to avoid writing two-line
>> functions themselves.  When a function you want is indeed trivial to code in
>> Python, that's a strong argument against bloating the core C code with it.
>
>This is partly because of the enormous speed difference between the
>interpreter and C functions, and partly from a desire of not having to

Has anyone considered an "inline" attribute for Python functions, to
avoid the proportionately large calling overhead for trivial functions?




More information about the Python-list mailing list