A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-February/061818.html below:

[Python-Dev] cProfile prints to stdout?

[Python-Dev] cProfile prints to stdout? [Python-Dev] cProfile prints to stdout?Georg Brandl g.brandl at gmx.net
Sat Feb 25 21:48:06 CET 2006
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.

Probably related:

http://python.org/sf/1235266

Cheers,
Georg

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4