[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 > propose rewriting the necessary bits to att a stream= keyword argument where > necessary and using stream.write(...) or print >> stream, ... instead of the > current bare print. I'd prefer the default for the stream be sys.stderr as > well. > > Thoughts?
FWIW, this idea has come-up a couple of times before so it should probably get fixed once and for all. Raymond _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com