One feature that textmate has that I've always been a bit envious of is the ability to send a snippet to a pastie service, and then automatically send the link to IRC. I'd very much like to have this, but I don't know Python anywhere near well enough. Does anyone know if there is a Python lib for pastie services? Would anyone else be interested in such a thing? I'll try my hand at it, I'm just hoping for some pushes in the right direction here and there.

I don't know of any Python pastebin APIs, but it's generally just a matter of submitting to a post url, and capturing the redirect that comes back. It shouldn't be too bad to cook something up via urllib - there's a bunch of introductory material around on how to work with urllib too.

Pasting the resulting URL into another program could be a bit funky, but just copying it to the clipboard is a good start - I'll add some API calls for that.

I was thinking more along the lines of interacting with the IRC client, than a Python IRC client. I think I could do this with Pidgin using DBus. But what you've done works well enough until I have more time to learn Python.

Exception in thread Thread-1:Traceback (most recent call last): File ".\threading.py", line 486, in __bootstrap_inner File ".\threading.py", line 446, in run File ".\pastie.py", line 28, in pastie File "mechanize-0.1.7b-py2.5.egg\mechanize\_mechanize.py", line 127, in __init__ File "mechanize-0.1.7b-py2.5.egg\mechanize\_html.py", line 562, in __init__ File "mechanize-0.1.7b-py2.5.egg\mechanize\_html.py", line 111, in __init__IOError: zipimport: can not open file mechanize-0.1.7b-py2.5.egg