Count nb call of a function, without global var or decorator

Méta-MCI enleverlesX.XmcX at XmclaveauX.com
Mon Feb 5 12:49:52 EST 2007


Re!

>>> why you didn't use an iterator?

If the iterator is extern (to the function), it's like decorator, or global 
var.
If it is internal, it's huge, compare to  this.count=this.count+1  (or 
this.count+=1)


@+

Michel Claveau






More information about the Python-list mailing list