[Patches] [ python-Patches-683074 ] Optional output streams for dis

SourceForge.net noreply@sourceforge.net
Thu, 22 May 2003 00:41:28 -0700


Patches item #683074, was opened at 2003-02-08 15:22
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=683074&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: logistix (logistix)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: Optional output streams for dis

Initial Comment:
Right now the dis module uses print to output.  This 
restricts it's use to interactive.  You can't easily route 
the output to files, webpages, run re's on it, etc.

This patch just adds an optional keyword parameter 
write that defaults to sys.stdout.write and replaces print 
statments with calls to write.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=683074&group_id=5470