1. 05 Şub, 2008 1 kayıt (commit)
  2. 18 Ara, 2003 1 kayıt (commit)
  3. 01 Agu, 2003 2 kayıt (commit)
  4. 31 Tem, 2003 1 kayıt (commit)
  5. 17 Haz, 2003 1 kayıt (commit)
  6. 01 May, 2003 2 kayıt (commit)
  7. 03 Mar, 2003 3 kayıt (commit)
    • Ken Manheimer's avatar
      py-pdbtrack-grub-for-buffer(): Rectified some logic errors i · ed6000a9
      Ken Manheimer yazdı
      introduced when shifting around some code, and added some redundancy
      to reduce chances of hitting the wrong source code.  (This is
      experimental - it will improve the accuracy, but will reduce the
      ability of the user to deliberately select the buffer they want the
      buffer grubbing stuff to find.  I think the accuracy improvement will
      be worth it, but am not sure, so may remove this.)
      ed6000a9
    • Ken Manheimer's avatar
      ad428cd1
    • Ken Manheimer's avatar
      Enhanced pdbtrack to provide for source code that's not findable by · e7aca521
      Ken Manheimer yazdı
      the reported path.  (Eg, precompiled scripts with a file path suitable
      for a different host, scripts actually running on a remote system or
      with no valid path, like Zope through-the-web python scripts.)
      
      On failing to find the code on the reported path, pdbtrack takes the
      function name and looks through the buffers, from most to least
      recent, seeking the first python-mode buffer that either is named for
      the function or has a definition (def or class) for that function.  So
      to get source tracking for code that's not located where the path
      indicates, you put a copy of the script in a buffer, and pdbtrack will
      find it.
      
      Also, fixed a small bug so pdbtrack now properly presents the overlay
      arrow when you run the pdb 'w'here command.
      e7aca521
  8. 31 Ara, 2002 1 kayıt (commit)
  9. 21 Eki, 2002 1 kayıt (commit)
    • Barry Warsaw's avatar
      (py-parse-state-re): Remove the "if" from the regular expression. · 644991fa
      Barry Warsaw yazdı
      This fixes an indentation bug reported by Jeremy when seeing multiple
      list comprehensions like so:
      
          [x for x in seq
           if blah(x)]
      
          # ...
      
          [y for y in seq
           if blah(y)]
      
      The reason this broke is because this regexp caused the "find a safe
      parsing start location higher up in the file" test to erroneously find
      the if in the listcomp.  I think the other keywords in this regexp are
      fine and good enough.
      
      After a weekend of testing, I can't find any adverse effects.
      644991fa
  10. 28 Eyl, 2002 1 kayıt (commit)
  11. 17 Tem, 2002 2 kayıt (commit)
  12. 16 Tem, 2002 2 kayıt (commit)
  13. 23 May, 2002 1 kayıt (commit)
  14. 12 May, 2002 1 kayıt (commit)
  15. 30 Nis, 2002 1 kayıt (commit)
  16. 26 Nis, 2002 1 kayıt (commit)
  17. 25 Nis, 2002 5 kayıt (commit)
    • Barry Warsaw's avatar
      cf22c826
    • Barry Warsaw's avatar
      SF patch #510288 by Kevin J. Butler, mod'd by Barry. This provides · 88491611
      Barry Warsaw yazdı
      better auto-recognition of a Jython file vs. a CPython (or agnostic)
      file by looking at the #! line more closely, and inspecting the import
      statements in the first 20000 bytes (configurable).  Specifically,
      
      (py-import-check-point-max): New variable, controlling how far into
      the buffer it will search for import statements.
      
      (py-jpython-packages): List of package names that are Jython-ish.
      
      (py-shell-alist): List of #! line programs and the modes associated
      with them.
      
      (jpython-mode-hook): Extra hook that runs when entering jpython-mode
      (what about Jython mode? <20k wink>).
      
      (py-choose-shell-by-shebang, py-choose-shell-by-import,
      py-choose-shell): New functions.
      
      (python-mode): Use py-choose-shell.
      
      (jpython-mode): New command.
      
      (py-execute-region): Don't use my previous hacky attempt at doing
      this, use the new py-choose-shell function.
      
      One other thing this file now does: it attempts to add the proper
      hooks to interpreter-mode-alist and auto-mode-alist if they aren't
      already there.  Might help with Emacs users since that editor doesn't
      come with python-mode by default.
      88491611
    • Barry Warsaw's avatar
      (py-execute-region): Alexander Schmolck points out that leading · 4aab68e1
      Barry Warsaw yazdı
      whitespace can hose the needs-if test.  So just skip all blank lines
      at the start of the region right off the bat.
      4aab68e1
    • Barry Warsaw's avatar
      (py-comint-output-filter-function): Add a pop-to-buffer call so you · 13caba30
      Barry Warsaw yazdı
      always get to see the result of e.g. a py-execute-region.  Funny, this
      bugged both me /and/ Guido!
      13caba30
    • Barry Warsaw's avatar
      (py-shell-hook): A new hook variable, run at the end of py-shell. · 56bd2ede
      Barry Warsaw yazdı
      Allows for some customization of the underlying comint buffer.
      
      (py-shell): Call the new hook.
      
      (info-lookup-maybe-add-help): A new call suggested by Milan Zamazal to
      make lookups in the Info documentation easier.
      56bd2ede
  18. 22 Nis, 2002 5 kayıt (commit)
    • Barry Warsaw's avatar
      Merge in Skip's last few updates w.r.t. py-help-at-point: · 0494955b
      Barry Warsaw yazdı
      (py-mode-map): Bind py-help-at-point to f1 as well as C-c C-h
      
      (py-help-at-point): Make sure the symbol is quoted so things like
      pydoc.help('sys.platform') work correctly.  Also, leave the *Python
      Output* buffer in help-mode; this may be a bit more controversial.
      0494955b
    • Barry Warsaw's avatar
      Some contributions and ideas by Alexander Schmolck: add a keybinding · 29a90f0a
      Barry Warsaw yazdı
      to call pychecker on the current file, add a face for pseudo
      keywords self, None, True, False, and Ellipsis.  Specifically,
      
      (py-pychecker-command, py-pychecker-command-args): New variables.
      
      (py-pseudo-keyword-face): New face variable, defaulting to a copy of
      font-lock-keyword-face.
      
      (python-font-lock-keywords): Add an entry for self, None, True, False,
      Ellipsis to be rendered in py-pseudo-keyword-face.
      
      (py-pychecker-history): New variable.
      
      (py-mode-map): Bind C-c C-w to py-pychecker-run.
      
      (py-pychecker-run): New command.
      29a90f0a
    • Barry Warsaw's avatar
      Skip Montanaro's contribution (slightly mod'd by Barry) to provide a · a7cc43b9
      Barry Warsaw yazdı
      "help-on-symbol-at-point" feature which uses pydoc to provide help on
      the symbol under point, if available.
      
      Mods include some name changes, a port to Emacs, binding the command
      to C-c C-h, and providing a more informative error message if the
      symbol's help can't be found (through use of a nasty bare except).
      
      Note also that py-describe-mode has been moved off of C-c C-h m; it's
      now just available on C-c ?
      
      Closes SF patch #545439.
      a7cc43b9
    • Barry Warsaw's avatar
      (py-execute-region): If the line at the beginning of the region is a · a0113cd5
      Barry Warsaw yazdı
      #! line, use the command on that line as the shell command to use to
      execute the region.  I.e. if the region looks like
      
      ----------------
      #! /usr/bin/env python1.5
      
      print 'hello world'.startswith('hello')
      ----------------
      
      you'll get an exception! :)
      
      This closes SF bug #232398.
      a0113cd5
    • Barry Warsaw's avatar
      (py-execute-region): If you ran this without having visited a · b2d5e62d
      Barry Warsaw yazdı
      python-mode file, py-which-shell would have been nil and the command
      to use would not get set correctly.  This changes things so that 1)
      the temporary file has a .py extension, 2) the temporary file is put
      into python-mode, and 3) the temporary file's py-which-shell is
      captured in a local `shell' variable, which is used to calculate the
      command to use.  Closes SF bug #545436.
      
      (py-parse-state): Rip out the XEmacs-specific calls to
      buffer-syntactic-context, which can get quite confused if there's an
      open paren in column zero say, embedded in a triple quoted string.
      This was always a performance hack anyway, and computers are fast
      enough now that we should be able to get away with the slower, more
      portable, full-parse branch.  Closes SF bug #451841.
      
      Update the comments at the top of the file.
      b2d5e62d
  19. 18 Mar, 2002 1 kayıt (commit)
  20. 15 Mar, 2002 1 kayıt (commit)
    • Barry Warsaw's avatar
      (py-honor-comment-indentation, py-compute-indentation): Fix the · d36cfe49
      Barry Warsaw yazdı
      implementation to match the documentation for
      py-honor-comment-indentation w.r.t. not nil or t value.  In that case
      it should still ignore ## for indentation purposes.  Closes SF bug
      #523825, w/ patch provided by Christian Stork (mod'd by Barry).
      
      Python 2.2.1 candidate.
      d36cfe49
  21. 06 Tem, 2001 2 kayıt (commit)
  22. 19 Haz, 2001 1 kayıt (commit)
  23. 18 Haz, 2001 1 kayıt (commit)
  24. 11 Nis, 2001 2 kayıt (commit)