<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/cmd.py, branch v2.7.3</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/cmd.py?h=v2.7.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/cmd.py?h=v2.7.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2011-12-06T19:46:04Z</updated>
<entry>
<title>Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop</title>
<updated>2011-12-06T19:46:04Z</updated>
<author>
<name>Jesus Cea</name>
<email>jcea@jcea.es</email>
</author>
<published>2011-12-06T19:46:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a94b578431725ea50381e7d31ff5580741593398'/>
<id>urn:sha1:a94b578431725ea50381e7d31ff5580741593398</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merged revisions 83380 via svnmerge from</title>
<updated>2010-08-01T04:04:03Z</updated>
<author>
<name>R. David Murray</name>
<email>rdmurray@bitdance.com</email>
</author>
<published>2010-08-01T04:04:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=58f15b66ffb03bfe2c9fbc111e1cc28f4cd3ddd4'/>
<id>urn:sha1:58f15b66ffb03bfe2c9fbc111e1cc28f4cd3ddd4</id>
<content type='text'>
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>#5991: let completion for the "help" command include help topics.</title>
<updated>2010-01-06T18:02:16Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2010-01-06T18:02:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=89040530035ee9a8d0b5ae34c6e73b80fafa4307'/>
<id>urn:sha1:89040530035ee9a8d0b5ae34c6e73b80fafa4307</id>
<content type='text'>
This also simplifies the Cmd.get_names() method implementation; it was written
at a time where dir() didn't consider base class attributes.
</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>
</feed>
