common practice for creating utility functions?

bruno at modulix onurb at xiludom.gro
Wed May 17 07:57:12 EDT 2006


Edward Elliott wrote:
> 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.

Then it will be time to uncomment the def block and comment out the
binding !-)

> 
>>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. ;)

Lol !-)

Please have mercy, I learned English a long long time ago - and mostly
with the lyrics of my favorite rock bands...

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list