Count nb call of a function, without global var or decorator
Bjoern Schliessmann
usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Mon Feb 5 13:05:02 EST 2007
Méta-MCI wrote:
> If the iterator is extern (to the function), it's like decorator,
> or global var.
Please excuse me, I don't understand your point. I'm not even sure
if both of us speak of the same iterators.
> If it is internal, it's huge, compare to this.count=this.count+1
> (or this.count+=1)
In which way huge? If you want top notch performance you should use
a C extension anyway ...
Regards,
Björn
--
BOFH excuse #339:
manager in the cable duct
More information about the Python-list
mailing list