Skip to content
Commits on Aug 13, 2011
  1. @infininight
Commits on May 25, 2010
  1. @adamv @infininight

    Add unittest snippets.

    * Snippet names come from corresponding Ruby test snippets.
    adamv committed with infininight May 11, 2010
Commits on Oct 5, 2008
  1. @lasersox
Commits on Jun 27, 2008
  1. @infininight

    Removing long since disabled preference item.

    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@10063 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    infininight committed Jun 27, 2008
Commits on Jun 20, 2008
  1. @lasersox

    • Major restructuring of Python's Run Script command employing the ne…

    …w TextMate::Executor.run API function.
    
      Including:
        • Complete removal of Support/Pymate
        • Addition of Support/sitecustomize.py.  The Run Script command puts ENV['TM_BUNDLE_SUPPORT'] on
          PYTHONPATH, causing this sitecustomize to be loaded.  Support/sitecustomize.py deletes
          TM_BUNDLE_SUPPORT from the PYTHONPATH, and then attempts to import sitecustomize *again*
          which will result in the user's sitecustomize.py being loaded, if it's on the PYTHONPATH.
        • All the “Run Script” code is now confined to the Run Script plist.  There is no longer a
          pymate.rb script.
        • Removed “PyMate” from the Run Script commands name.
    
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@9971 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    lasersox committed Jun 20, 2008
Commits on May 3, 2008
  1. @sorbits

    • restore the New Method snippet — this was marked as deleted in r594…

    …2 but I don’t think it was intentional
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@9494 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed May 3, 2008
Commits on Mar 20, 2007
  1. @lasersox

    • Hexadecimal escapes in python strings were not matched correctly, b…

    …ut they are now.
    
    • Fixing the misplaced endCaptures key reported by Nicholas Fabry.
    • Adding a Python regular expression grammar, because Python regular expressions are not the same as Oniguruma regular expressions. Python raw strings now include this language.
    
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@6854 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    lasersox committed Mar 20, 2007
Commits on Mar 4, 2007
  1. @sorbits

    Add the following keys to the bundle’s info.plist:

    contactName:
       The full name of the contact for this bundle.
    contactEmailRot13:
       A ROT13 encoded email address for the bundle contact (we obfuscate it to avoid spammers from picking up the files, seeing how bundles will often be available via anonymous svn over http).
    description:
       A short description for this bundle. Do link to more info about the language (or whatever) the bundle is about. I decided on using HTML for this (but leave out the initial paragraph tag) since it seemed like overkill to run a single line of text through Markdown.pl, just to convert [foo](link) into <a href="link">foo</a>
    
    Many of the current descriptions could use some improvements, I just wanted to get the ball rolling :)
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@6718 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Mar 4, 2007
Commits on Dec 8, 2006
  1. @lasersox

    • Revert Documentation in Browser command to it's original pydoc base…

    …d-version.
    
    • Moving the recently added, improved, documentation command to it's own tmCommand file. This will replace the pydoc-based tmCommand in the future.
    
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@6314 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    lasersox committed Dec 8, 2006
  2. @lasersox

    • Removing the useless "Triple Quote Selection" commands.

    • Improved docmate.  Currently, searches a local index file, and loads documentation for
      current word from http://docs.python.org.  If there is more than one possible match,
      displayes a tm_dialog menu.  This is pretty effective, the only drawback is that you
      have to be online to use it.  I will add support for offline docs very soon. The
      command also remembers what docs you look at the most, so will list them in order of
      popularity.
    • Added a macro to forward and backward delete two quotes when pressing  ⌫ inside of
      an empty triple-quoted string.
    • Made the scope for `Inside String: Insert "…"` more specific.
    
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@6312 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    lasersox committed Dec 8, 2006
Commits on Nov 23, 2006
  1. @lasersox

    • Instead of simply removing "entity.name.function.decorator.python" …

    …from "meta.function.decorator"; suppress it from the Symbol List with a preference.
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@6210 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    lasersox committed Nov 23, 2006
Commits on Nov 5, 2006
  1. @lasersox

    • PyMate has been revamped. We now launch the python script in it's o…

    …wn process, and provide a custom exception handler via sitecustomize.py. Also, a custom `input` and `raw_input` functions are provided using the wonderful tm_dialog.
    
    • Reverting New Function.snippet. (I thought I had done this, but apparently not.)
    
    
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@5942 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    lasersox committed Nov 5, 2006
Commits on Oct 31, 2006
  1. @lasersox

    • Adjusted Triple Quote Selection commands to insert """|""" when the…

    …re is no selection.
    
    • Added 'Execute Line/Selection as Python' command.  Invoke it with ⌃⇧E.
    • Refined the New Class snippet a further.  It is a little harder to insert stray comma's now.
    
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@5803 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    lasersox committed Oct 31, 2006
  2. @sorbits
Commits on Oct 26, 2006
  1. @lasersox

    * Added macro to overtype the closing ''' or """ in triple quoted str…

    …ings.
    
    * Updated the overtype closing ' and " macros to reflect changes in the grammar.
    * Added Macro to overtype the closing `):` in class defs and function defs.
    * Added a new command to wrap selection in Triple quotes.  Invoke the new command with ⌃' or ⌃".
    
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@5636 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    lasersox committed Oct 26, 2006
Commits on Jun 8, 2006
  1. @jrus

    menu structure

    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@3580 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    jrus committed Jun 8, 2006
Commits on May 28, 2006
  1. Add back the special macro to handle :+LF in Python becuase the sourc…

    …e macro handler for this will not trigger indentation in all cases
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@3445 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    David Powers committed May 28, 2006
Commits on May 27, 2006
  1. switch python to use TM_LINE_TERMINATOR

    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@3434 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    David Powers committed May 27, 2006
Commits on May 24, 2006
  1. @jrus

    move quote typing/overtyping snippets into excluded items (in menu st…

    …ructure)
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@3413 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    jrus committed May 24, 2006
Commits on May 9, 2006
  1. Add try/except stub snippet to Python

    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@3288 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    David Powers committed May 9, 2006
Commits on May 3, 2006
  1. Add shift-return to Python (bring it in line with ruby, etc)

    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@3208 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    David Powers committed May 3, 2006
Commits on Jan 7, 2006
  1. @sorbits
Commits on Nov 27, 2005
  1. * added cmd-opt-return and cmd-shift-return keys (inserting colon, no…

    …t semicolon)
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@2305 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    Paul Bissex committed Nov 27, 2005
Commits on Nov 17, 2005
  1. "New Class" snippet added for Python.

    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@2176 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    Domenico Carbotta committed Nov 17, 2005
  2. Here's the TM command to go with cleanup_whitespace.py.

    It works on selected text, but falls back to the whole document if none available.
    
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@2175 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    Jeroen van der Ham committed Nov 17, 2005
Commits on Nov 13, 2005
  1. @sorbits

    • entity.name.class is now always included in the symbol list

    • now there's proper regexp subst. to handle indent/pretty print of method declaration for Java, Python, and Ruby
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@2135 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Nov 13, 2005
Commits on Nov 12, 2005
  1. @sorbits

    • removed the 'tr' snippet, which I think is now redundant

    • renamed all the stuff to use Titlecase and be a little more (IMHO) meaningful
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@2132 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Nov 12, 2005
Commits on Oct 22, 2005
  1. @sorbits

    I've tried to clean up naming and placement of these Python commands,…

    … since it really was/is a mess :)
    
    I also made minor changes to the commands, but the functionality should remain (just tried to simplify a few things).
    
    I removed the old Python run command, we did that for Ruby as well. I also spelled it Unit Test in two words, trying to mimic the structure of the Ruby bundle, though this is currently inconsistent with the Python templates.
    
    Apologies in advance if I broke something.
    
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@1980 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Oct 22, 2005
Commits on Sep 19, 2005
  1. Added "Browse pydocs in browser" to complement the other Python doc c…

    …ommands. Even though looking up a module/method with the current "pydoc" command is great, it doesn't help if you don't know exactly what you are looking for. By starting the server (lazily) and actually browsing the docs, this makes it a bit easier to dig through your local install. It also solves the problem of anchor links not working in the TextMate "pydoc" command.
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@1807 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    Kumar McMillan committed Sep 19, 2005
Commits on Sep 11, 2005
  1. Added a snippet for Python: "." <TAB> expands to "self."

    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@1746 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    Domenico Carbotta committed Sep 11, 2005
Commits on Aug 12, 2005
  1. @bnmnetp

    Latest docmate from Domenico. I also added a check to see if the curs…

    …or was just to the right of a (. Added the extended docmate command which brings up some additional output in an html view instead of a tooltip.
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@1521 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    bnmnetp committed Aug 12, 2005
Commits on Aug 11, 2005
  1. @bnmnetp

    Another Python gem from Domenico... Works pretty hard to find the doc…

    …string for the function under the cursor. The docstring is displayed in a tooltip. This would be ideal to bind to ( someday when input patterns are working. For now I have it on ctrl-space because I'm still used to ctrl-space for autocomplete. (and I've never gotten over cmd-space for quicksilver on my machine) suggestions for better bindings welcome.
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@1505 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    bnmnetp committed Aug 11, 2005
  2. @bnmnetp

    Add the latest updates to pymate from Domenico.

    Add another snippet for triple-quotes  (using single quotes)
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@1504 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    bnmnetp committed Aug 11, 2005
Commits on Aug 10, 2005
  1. @sorbits

    • experimental snippet that tries to make smart-typing work for tripl…

    …e-quoted strings by overloading " inside strings to insert a quote-pair
    
    git-svn-id: http://svn.textmate.org/trunk/Bundles/Python.tmbundle@1499 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Aug 10, 2005
Commits on Aug 9, 2005
  1. @sorbits
Something went wrong with that request. Please try again.