[Tutor] help about to how many times the function called

2013-01-04 Thread lei yang
Hi experts I have a function will print PASS status def print_pass(t_elapsed): Print PASS to stdout with PASS (green) color. print_stdout(bcolors.PASS + PASS + bcolors.ENDC + (%.2f s) % t_elapsed) I want to calculate the pass number, so I want to get how many times this

Re: [Tutor] help about to how many times the function called

2013-01-04 Thread Steven D'Aprano
On 04/01/13 20:17, lei yang wrote: Hi experts I have a function will print PASS status def print_pass(t_elapsed): Print PASS to stdout with PASS (green) color. print_stdout(bcolors.PASS + PASS + bcolors.ENDC + (%.2f s) % t_elapsed) I want to calculate the pass

Re: [Tutor] help about to how many times the function called

2013-01-04 Thread bob gailer
On 1/4/2013 4:25 AM, Steven D'Aprano wrote: On 04/01/13 20:17, lei yang wrote: Hi experts I have a function will print PASS status def print_pass(t_elapsed): Print PASS to stdout with PASS (green) color. print_stdout(bcolors.PASS + PASS + bcolors.ENDC + (%.2f s) %