You used Python for what?
speakerdeck.com
speakerdeck.com
Some unusual stuff I've done in Python that I happen to have online:
https://gitorious.org/bdflib is a library for working with bitmap fonts in the "BDF" file-format, one of the traditional X11 font formats. Among other things, given a font with some base glyphs and some combining glyphs, it can automatically generate all the pre-composed glyphs Unicode defines.
https://gitorious.org/macfontextractor is a library for extracting FONT and NFNT resources from Mac OS Classic resource forks. It loads them into the data structures defined by bdflib above, so you can save them out to BDF files. Currently it only supports resource forks in MacBinary-encoded files, but it shouldn't be too hard to extend it to work with AppleSingle, AppleDouble and native resource-fork support.
https://gitorious.org/python-blip (now renamed Python BPS, I couldn't change the URL) is a diff/patch tool for arbitrary binary files; a bit like bsdiff or xdelta. It produces less space-efficient diffs than bsdiff, and it's much slower than xdelta, but the BPS file-format is vastly easier to implement than either of those.
Many libraries (standard and 3rd-party) are generally well-designed and are of a very high quality (ex. django, twisted, sqlalchemy, numpy)
I also write tests in Python which is very efficient (in lines of code). Having those tests available makes the porting considerably easier as you can verify the new code quickly.
It depends on which half of the slide you click.
When I realized it was just a slideshow, I was disappointed. Slides are meant to highlight points, illustrate concepts, and provide focus during a presentation, but they aren't meant to replace it. The only purpose in sharing slides is so that the folks who saw the presentation can remember it better.
It is quite incomplete. But on the other side a bit loosely on the grammar, so it might work.
I wasn't able yet to interpret any bigger projects. One goal was to interpret CPython (https://github.com/albertz/PyCPython) and I got pretty far but I lost interest in it a bit (I remember that I got stuck when interpreting `goto` because there was no easy equivalent in Python, but I found a solution recently: https://github.com/albertz/playground/blob/master/py_goto.py).
I successfully used this however to create ctypes interfaces for header files on the fly. E.g. https://github.com/albertz/PySDL uses it.
And for doing some analytics, it might also work good enough.
I never actually learned it in a conventional method, just jumped into programming these scripts and looking at other people's scripts for reference.
Now that I've taken a basic course on objective-based coding, I'd love to go back and learn Python for real.
http://burrowscode.wordpress.com/2010/02/18/exporting-non-ex... http://burrowscode.wordpress.com/2010/02/20/code-snippet-to-... http://burrowscode.wordpress.com/2010/02/22/exporting-non-ex...
Couldn't tell you what it does exactly, but I remember him thinking it was weird he did it in Python
Then I found an interesting job at financial startup where people liked Django/Python combination so I used it there too. Business logic was far clearer to read than Java code from other system parts I saw (I had to describe writing documentation and diagrams describing some details of "how it works").
Lots of interesting stuff here. The Concorde solver is probably the state of the art. http://www.tsp.gatech.edu/concorde/index.html
from os import*
r='s=[0]*8**5'
p=0
for c in read(0,9**9):r+='\n'+' '*p+dict(zip("><+-.,[","p+=1|p-=1|s[p]+=1|s[p]-=1|write(1,chr(s[p]))|s[p]=ord(read(0,1))|while s[p]:".split('|'))).get(c,'');p+=c in'[]'and 92-ord(c)
exec r
I know, it's a JIT compiler, not an interpreter, but still... :)