
Feb. 26, 2003
10:20 p.m.
While the subject is up, I previously submitted a patch [683074] to allow you to specify an output stream. Right now dis just uses print, which made it a little difficult to redirect the output. Is there any interest in this feature? If so, I'll update the patch against Skip's. If not, or if there are objections, the patch can be closed out.
-1 You can redirect everything's output to a file by assigning that file to sys.stdout. I really don't think we need to add output file options to every class in the standard library. dis is primarily an interactive and debugging tool. And you can always subclass it. --Guido van Rossum (home page: http://www.python.org/~guido/)