common practice for creating utility functions?
Edward Elliott
nobody at 127.0.0.1
Tue May 16 22:50:24 EDT 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