common practice for creating utility functions?

Edward Elliott nobody at
Wed May 17 04:50:24 CEST 2006

Bruno Desthuilliers wrote:

> Then it would be better to just alias it:
> # def convert_quote(quote):
> #     return make_code(quote)
> convert_quote = make_code

The former makes sense if you're planning to do more with the calling
function later.
> About the "fine to do" part, remember that Python's function calls are
> rather expansive...

Indeed, their expansiveness makes them great.  Unfortunately they're
somewhat expensive too. ;)

Edward Elliott
UC Berkeley School of Law (Boalt Hall)
complangpython at eddeye dot net

More information about the Python-list mailing list