1. 07 Tem, 2004 1 kayıt (commit)
  2. 01 Tem, 2004 1 kayıt (commit)
    • Michael W. Hudson's avatar
      Fix · d7cc1bd8
      Michael W. Hudson yazdı
      [ 924301 ] A leak case with cmd.py & readline & 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 & postloop accurate again.
      d7cc1bd8
  3. 22 Eki, 2003 1 kayıt (commit)
  4. 19 Şub, 2003 1 kayıt (commit)
  5. 06 Şub, 2003 1 kayıt (commit)
    • Anthony Baxter's avatar
      Updated version of [ 558544 ] cmd.py: add instance-specific stdin/out · 983b0088
      Anthony Baxter yazdı
      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.
      983b0088
  6. 03 Şub, 2003 1 kayıt (commit)
    • Michael W. Hudson's avatar
      Fix bug · 35a92ce9
      Michael W. Hudson yazdı
      [ 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.
      35a92ce9
  7. 13 Ock, 2003 1 kayıt (commit)
  8. 02 Ara, 2002 1 kayıt (commit)
  9. 30 Haz, 2002 1 kayıt (commit)
  10. 01 Haz, 2002 1 kayıt (commit)
  11. 29 May, 2002 1 kayıt (commit)
  12. 24 Mar, 2002 1 kayıt (commit)
  13. 23 Mar, 2002 1 kayıt (commit)
  14. 09 Agu, 2001 1 kayıt (commit)
  15. 28 Tem, 2001 1 kayıt (commit)
  16. 20 Tem, 2001 1 kayıt (commit)
  17. 22 Mar, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      This is SF patch #405952, by Anthony Baxter: · bfb9184b
      Guido van Rossum yazdı
      cmd.py uses raw_input(); eats SIGCLD:
      
        I discovered a rather nasty side effect of the standard cmd.py
        library today. If it's sitting inside raw_input(), any SIGCLDs that
        get sent to your application get silently eaten and ignored. I'm
        assuming that this is something that readline is thoughtfully doing
        for me.
      
        This patch adds an instance attr that allows the user to select to
        not use raw_input(), but instead use sys.stdin.readline()
      
      [Changed slightly to catch EOFError only for raw_input().]
      bfb9184b
  18. 09 Şub, 2001 1 kayıt (commit)
  19. 26 Ock, 2001 1 kayıt (commit)
  20. 20 Ock, 2001 1 kayıt (commit)
    • Skip Montanaro's avatar
      added __all__ lists to a number of Python modules · e99d5ea2
      Skip Montanaro yazdı
      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.
      e99d5ea2
  21. 12 Ara, 2000 1 kayıt (commit)
  22. 11 Tem, 2000 1 kayıt (commit)
  23. 02 Şub, 2000 1 kayıt (commit)
    • Guido van Rossum's avatar
      Mass patch by Ka-Ping Yee: · 4acc25bd
      Guido van Rossum yazdı
          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).
      4acc25bd
  24. 03 May, 1999 1 kayıt (commit)
  25. 12 Mar, 1999 1 kayıt (commit)
    • Guido van Rossum's avatar
      Patch by Michael Scharf. He writes: · d5138cab
      Guido van Rossum yazdı
          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]
      d5138cab
  26. 11 Eyl, 1998 1 kayıt (commit)
    • Guido van Rossum's avatar
      Richard Wolff's changes: · 5fca6fd2
      Guido van Rossum yazdı
      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.
      5fca6fd2
  27. 27 Agu, 1998 1 kayıt (commit)
    • Guido van Rossum's avatar
      Changes by Richard Wolff: · b9f48608
      Guido van Rossum yazdı
      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 (<cr>), you get an infinite recursion with the
         code as it stands.
      b9f48608
  28. 20 Tem, 1998 1 kayıt (commit)
  29. 01 Tem, 1998 1 kayıt (commit)
  30. 29 Haz, 1998 1 kayıt (commit)
  31. 22 May, 1998 1 kayıt (commit)
  32. 01 Agu, 1994 1 kayıt (commit)
  33. 17 Ara, 1993 1 kayıt (commit)
  34. 23 Haz, 1993 1 kayıt (commit)
  35. 20 Haz, 1993 1 kayıt (commit)
    • Guido van Rossum's avatar
      * aifc.py: don't die on invalid MARK chunk · 9b3bc715
      Guido van Rossum yazdı
      * calendar.py: remove stuff now built in time; some cleanup and
        generalization in the calendar printing
      * cmd.py: use __init__.
      * tzparse.py: This module is no longer necessary -- use builtin time instead!
      9b3bc715
  36. 05 Kas, 1992 1 kayıt (commit)
    • Guido van Rossum's avatar
      * change default line numbers for 'list' in pdb.py · c629d34c
      Guido van Rossum yazdı
      * changed eval() into getattr() in cmd.py
      * added dirname(), basename() and (dummy) normath() to macpath.py
      * renamed nntp.py to nntplib.py
      * Made string.index() compatible with strop.index()
      * Make string.atoi('') raise string.atoi_error rather than ValueError
      * Added dirname() and normpath() to posixpath.
      c629d34c
  37. 19 Agu, 1992 1 kayıt (commit)
  38. 27 Ock, 1992 1 kayıt (commit)
  39. 24 Ock, 1992 1 kayıt (commit)