summaryrefslogtreecommitdiffstats
path: root/Modules/cgensupport.c
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2003-02-06 01:45:11 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2003-02-06 01:45:11 (GMT)
commit983b00882400986b292837a25ef866fc897d603b (patch)
tree57dc9d3b234310806dca8ae5a892ca5f55ad7883 /Modules/cgensupport.c
parent985eba53f5d1ac45037fbf19b6955c74823c1ded (diff)
downloadcpython-983b00882400986b292837a25ef866fc897d603b.zip
cpython-983b00882400986b292837a25ef866fc897d603b.tar.gz
cpython-983b00882400986b292837a25ef866fc897d603b.tar.bz2
Updated version of [ 558544 ] cmd.py: add instance-specific stdin/out
This 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. Patch for library module and for documentation.
Diffstat (limited to 'Modules/cgensupport.c')
0 files changed, 0 insertions, 0 deletions