<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/cmd.py, branch 2.6</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/cmd.py?h=2.6</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/cmd.py?h=2.6'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2010-08-01T04:11:05Z</updated>
<entry>
<title>Merged revisions 83381 via svnmerge from</title>
<updated>2010-08-01T04:11:05Z</updated>
<author>
<name>R. David Murray</name>
<email>rdmurray@bitdance.com</email>
</author>
<published>2010-08-01T04:11:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0d023db38623c7163f8264fecd4f8f881b4fccee'/>
<id>urn:sha1:0d023db38623c7163f8264fecd4f8f881b4fccee</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint

................
  r83381 | r.david.murray | 2010-08-01 00:04:03 -0400 (Sun, 01 Aug 2010) | 23 lines

  Merged revisions 83380 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/branches/py3k

  ........
    r83380 | r.david.murray | 2010-07-31 23:31:09 -0400 (Sat, 31 Jul 2010) | 17 lines

    #8620: Cmd no longer truncates last character if stdin ends without newline

    Cmd used to blindly chop off the last character of every input line.  If
    the input reached EOF and there was no final new line, it would truncate
    the last character of the last command.  This fix instead strips trailing
    \r\n from the input lines.  While this is a small behavior change, it
    should not break any working code, since feeding a '\r\n' terminated
    file to Cmd would previously leave the \r's on the lines, resulting
    in failed command execution.

    I wrote the unit test in preparation for a PyOhio TeachMe session
    run by Catherine Devlin, and we can thank Catherine and the PyOhio
    session attendees for the fix.  I've added Catherine to the Acks file
    for organizing and leading the TeachMe session, out of which we will
    hopefully get some new contributors.
  ........
................
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2004-07-07T20:54:48Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-07-07T20:54:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4e0e1b6a540e664e89739456db4c706701bf062b'/>
<id>urn:sha1:4e0e1b6a540e664e89739456db4c706701bf062b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix</title>
<updated>2004-07-01T14:52:10Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2004-07-01T14:52:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d7cc1bd809522ff3d9ad13bb5a470a392e506941'/>
<id>urn:sha1:d7cc1bd809522ff3d9ad13bb5a470a392e506941</id>
<content type='text'>
[ 924301 ] A leak case with cmd.py &amp; readline &amp; exception

by ensuring that the readline completion function is always reset
even in the case of an exception being raised.  As a bonus, this
makes the documentation for pre &amp; postloop accurate again.
</content>
</entry>
<entry>
<title>Add docstring</title>
<updated>2003-10-22T14:38:54Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2003-10-22T14:38:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7cebbf39a9df7bdde0ed2da314e6f651e114e22b'/>
<id>urn:sha1:7cebbf39a9df7bdde0ed2da314e6f651e114e22b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2003-02-19T02:35:07Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-02-19T02:35:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f2715e076435b74638acb81512c2ee014f75aea2'/>
<id>urn:sha1:f2715e076435b74638acb81512c2ee014f75aea2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Updated version of [ 558544 ] cmd.py: add instance-specific stdin/out</title>
<updated>2003-02-06T01:45:11Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2003-02-06T01:45:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=983b00882400986b292837a25ef866fc897d603b'/>
<id>urn:sha1:983b00882400986b292837a25ef866fc897d603b</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Fix bug</title>
<updated>2003-02-03T11:04:27Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2003-02-03T11:04:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=35a92ce9da03a7a8acce565708eba96bf7cc2f1c'/>
<id>urn:sha1:35a92ce9da03a7a8acce565708eba96bf7cc2f1c</id>
<content type='text'>
[ 676342 ] after using pdb readline does not work correctly

using Michael Stone's patch so the completer functionality of
cmd is only setup between preloop and postloop.
</content>
</entry>
<entry>
<title>Duh.  cmdqueue should be an instance variable, not a class variable.</title>
<updated>2003-01-13T21:18:54Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2003-01-13T21:18:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=87fec22476ad0ef5d87398adfc00dd8b159015e3'/>
<id>urn:sha1:87fec22476ad0ef5d87398adfc00dd8b159015e3</id>
<content type='text'>
This was introduced in 1998 in rev. 1.13, where I imported extensive
patches that, I am sad to say, I didn't review as carefully as I
should have.
</content>
</entry>
<entry>
<title>Add a better columnizer to print_topics().</title>
<updated>2002-12-02T13:08:53Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-12-02T13:08:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c706c28d75f1455a39e4eca3cf6ddc4be3002149'/>
<id>urn:sha1:c706c28d75f1455a39e4eca3cf6ddc4be3002149</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Code modernization.  Replace v=s[i]; del s[i] with single lookup v=s.pop(i)</title>
<updated>2002-06-30T03:39:14Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-06-30T03:39:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=46ac8eb3c899b498299a2f8fbcdd4ed3f32addba'/>
<id>urn:sha1:46ac8eb3c899b498299a2f8fbcdd4ed3f32addba</id>
<content type='text'>
</content>
</entry>
</feed>
