This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author anthonybaxter
Recipients
Date 2002-05-21.05:45:14
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The following patch adds stdin, stdout as optional
arguments to the cmd.Cmd constructor (defaulting to
sys.stdin, sys.stdout), and changes the Cmd methods
throughout to use self.stdout.write() and 
self.stdin.foo for output and input. This allows much
greater flexibility for using cmd - for instance, 
hooking it into a telnet server. And if the response
is YAGNI, well, actually, IAGNI, because it's in use
today (and for the last year). :)

If this is acceptable, I'll provide a documentation
patch as well.
History
Date User Action Args
2007-08-23 15:13:19adminlinkissue558544 messages
2007-08-23 15:13:19admincreate