Re: [Python-Dev] cProfile prints to stdout?

2006-02-25 Thread Brett Cannon
On 2/25/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I just noticed that cProfile (like profile) prints to stdout. Yuck. I guess that's to be expected because the pstats module does the actual printing and it's used by both modules. I'm willing to give up backward compatibility to achieve

Re: [Python-Dev] cProfile prints to stdout?

2006-02-25 Thread Raymond Hettinger
[Skip] I just noticed that cProfile (like profile) prints to stdout. Yuck. I guess that's to be expected because the pstats module does the actual printing and it's used by both modules. I'm willing to give up backward compatibility to achieve a little more sanity and flexibility here. I

Re: [Python-Dev] cProfile prints to stdout?

2006-02-25 Thread Georg Brandl
[EMAIL PROTECTED] wrote: I just noticed that cProfile (like profile) prints to stdout. Yuck. I guess that's to be expected because the pstats module does the actual printing and it's used by both modules. I'm willing to give up backward compatibility to achieve a little more sanity and

Re: [Python-Dev] cProfile prints to stdout?

2006-02-25 Thread skip
Georg Probably related: Georg http://python.org/sf/1235266 Don't think so. That was just a documentation nit (and is now fixed and closed at any rate). Skip ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] cProfile prints to stdout?

2006-02-25 Thread Georg Brandl
[EMAIL PROTECTED] wrote: Georg Probably related: Georg http://python.org/sf/1235266 Don't think so. That was just a documentation nit (and is now fixed and closed at any rate). Well, it is another module that prints to stdout instead of stderr. Okay, not so closely related ;)

Re: [Python-Dev] cProfile prints to stdout?

2006-02-25 Thread Guido van Rossum
On 2/25/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I just noticed that cProfile (like profile) prints to stdout. Yuck. Can you clarify? Why is it wrong to send the output of the profiler to stdout? It seems to make sense to me that you should be able to redirect the profiler's output to a

Re: [Python-Dev] cProfile prints to stdout?

2006-02-25 Thread skip
I just noticed that cProfile (like profile) prints to stdout. Yuck. Guido Can you clarify? Why is it wrong to send the output of the Guido profiler to stdout? If the program emits a bunch of output of its own I want to keep it separate from what is arguably the debug output of the

Re: [Python-Dev] cProfile prints to stdout?

2006-02-25 Thread Guido van Rossum
On 2/25/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I just noticed that cProfile (like profile) prints to stdout. Yuck. Guido Can you clarify? Why is it wrong to send the output of the Guido profiler to stdout? If the program emits a bunch of output of its own I want to

Re: [Python-Dev] cProfile prints to stdout?

2006-02-25 Thread skip
It is currently impossible to separate profile output from the program's output. Guido It is if you use the advanced use of the profiler -- the Guido profiling run just saves the profiling data to a file, and the Guido pstats module invoked separately prints the output.