[Python-Dev] cProfile prints to stdout?
Brett Cannon
brett at python.org
Sat Feb 25 21:35:22 CET 2006
More information about the Python-Dev mailing list
Sat Feb 25 21:35:22 CET 2006
- Previous message: [Python-Dev] cProfile prints to stdout?
- Next message: [Python-Dev] cProfile prints to stdout?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2/25/06, skip at pobox.com <skip at pobox.com> 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 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? +0 from me (would be +1 since it seems very reasonable, but I never use profile and this will break some code somewhere). -Brett
- Previous message: [Python-Dev] cProfile prints to stdout?
- Next message: [Python-Dev] cProfile prints to stdout?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list