I accidentally sent below mail only to roy. Resending to groups. ---------- Yönlendirilmiş ileti ---------- Kimden: Yaşar Arabacı <[email protected]> Tarih: 23 Ağustos 2011 16:19 Konu: Re: is there any principle when writing python function Kime: Roy Smith <[email protected]>
I don't see myself a good python programmer or anything, but just saying what I do. I create function for each of the biggest code blocks that is going to be executed more then once. 2011/8/23 Roy Smith <[email protected]> > In article <[email protected]>, Peter Otten <[email protected]> > wrote: > > > smith jack wrote: > > > > > i have heard that function invocation in python is expensive, but make > > > lots of functions are a good design habit in many other languages, so > > > is there any principle when writing python function? > > > for example, how many lines should form a function? > > > > Five ;) > > Five is right out. > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://yasar.serveblog.net/ -- http://yasar.serveblog.net/
-- http://mail.python.org/mailman/listinfo/python-list
