<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/cmd.py, branch v2.1a2</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=v2.1a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/cmd.py?h=v2.1a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-01-26T17:15:18Z</updated>
<entry>
<title>unnecessary semicolon</title>
<updated>2001-01-26T17:15:18Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-01-26T17:15:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d30e587e00d0c01c87bfbbdb5c694131ffd0ea70'/>
<id>urn:sha1:d30e587e00d0c01c87bfbbdb5c694131ffd0ea70</id>
<content type='text'>
</content>
</entry>
<entry>
<title>added __all__ lists to a number of Python modules</title>
<updated>2001-01-20T19:54:20Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2001-01-20T19:54:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e99d5ea25ba994491c773d9b5872332334ccd1c5'/>
<id>urn:sha1:e99d5ea25ba994491c773d9b5872332334ccd1c5</id>
<content type='text'>
added test script and expected output file as well
this closes patch 103297.
__all__ attributes will be added to other modules without first submitting
a patch, just adding the necessary line to the test script to verify
more-or-less correct implementation.
</content>
</entry>
<entry>
<title>Update the code to better reflect recommended style:</title>
<updated>2000-12-12T23:20:45Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2000-12-12T23:20:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8152d32375c40bba9ccbe43b780ebe96d9617781'/>
<id>urn:sha1:8152d32375c40bba9ccbe43b780ebe96d9617781</id>
<content type='text'>
Use != instead of &lt;&gt; since &lt;&gt; is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
</content>
</entry>
<entry>
<title>Bug fix: ? and ! were not full aliases for `help' and `shell' as implied in</title>
<updated>2000-07-11T13:03:55Z</updated>
<author>
<name>Eric S. Raymond</name>
<email>esr@thyrsus.com</email>
</author>
<published>2000-07-11T13:03:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5f1b27084aacc2975b3f94e7b225215066f4e1e2'/>
<id>urn:sha1:5f1b27084aacc2975b3f94e7b225215066f4e1e2</id>
<content type='text'>
the documentation; the cases `? foo' and `! foo' failed.
</content>
</entry>
<entry>
<title>Mass patch by Ka-Ping Yee:</title>
<updated>2000-02-02T15:10:15Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-02-02T15:10:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4acc25bd392216c4f867a10ca8081e7c8a739676'/>
<id>urn:sha1:4acc25bd392216c4f867a10ca8081e7c8a739676</id>
<content type='text'>
    1. Comments at the beginning of the module, before
       functions, and before classes have been turned
       into docstrings.

    2. Tabs are normalized to four spaces.

Also, removed the "remove" function from dircmp.py, which reimplements
list.remove() (it must have been very old).
</content>
</entry>
<entry>
<title>No need to import sys or linecache.  (Andrew Dalke &amp; kjpylint)</title>
<updated>1999-05-03T18:08:16Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1999-05-03T18:08:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=db6d12c49835de33fb765df8e0be82ec144d64a1'/>
<id>urn:sha1:db6d12c49835de33fb765df8e0be82ec144d64a1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patch by Michael Scharf.  He writes:</title>
<updated>1999-03-12T22:15:43Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1999-03-12T22:15:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d5138caba5fac644571cd7fa013d1ab0d4f867b6'/>
<id>urn:sha1:d5138caba5fac644571cd7fa013d1ab0d4f867b6</id>
<content type='text'>
    The module cmd requires for each do_xxx command a help_xxx
    function. I think this is a little old fashioned.

    Here is a patch: use the docstring as help if no help_xxx
    function can be found.

[I'm tempted to rip out all the help_* functions from pdb, but I'll
resist it.  Any takers?  --Guido]
</content>
</entry>
<entry>
<title>Richard Wolff's changes:</title>
<updated>1998-09-11T22:33:08Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-09-11T22:33:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5fca6fd2d9d53a5c417fc8a811752009b0f025e4'/>
<id>urn:sha1:5fca6fd2d9d53a5c417fc8a811752009b0f025e4</id>
<content type='text'>
cmd.py  has incorporated the changes we discussed a couple of weeks ago
	(a command queue, returning line from precmd, and stop from postcmd)
	and some changes to help that were occasioned because I wanted to
	inherit from pdb which inherits from cmd.py and the help routine
	didn't look for commands or the associated help deeply enough.
</content>
</entry>
<entry>
<title>Changes by Richard Wolff:</title>
<updated>1998-08-27T19:02:51Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-08-27T19:02:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b9f48608f6c0338a85c7162ec07fbad5f95d1f8a'/>
<id>urn:sha1:b9f48608f6c0338a85c7162ec07fbad5f95d1f8a</id>
<content type='text'>
1) I added a command queue which is helpful to me (at least so far) and
   would also allow syntax like 's;s' (step; step) in conjunction with precmd
2) doc_leader allows the derived class to print a message before the help
   output.  Defaults to current practise of a blank line
3) nohelp allows one to override the 'No help on' message.  I need
    'Undefined command: "%s".  Try "help".'
4) Pass line to self.precmd to allow one to do some parsing: change first
   word to lower case, strip out a leading number, whatever.
5) Pass the result of onecmd and the input line to postcmd.  This allows
   one to ponder the stop result before it is effective.
6) emptyline() requires a   if self.lastcmd:  conditional because if the
   first command is null (&lt;cr&gt;), you get an infinite recursion with the
   code as it stands.
</content>
</entry>
<entry>
<title>Fix another bug in ESR's changes.  In order to work properly,</title>
<updated>1998-07-20T21:22:08Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-07-20T21:22:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c612681b20f2ff8786067a3d8c6d041bc64d0db0'/>
<id>urn:sha1:c612681b20f2ff8786067a3d8c6d041bc64d0db0</id>
<content type='text'>
onecmd(line) must return the value returned by emptyline() or
default(line).
</content>
</entry>
</feed>
