© Copyright 2000-2015 Source Code Online. Free Source Code and Scripts Downloads.
|Code Listing by Dan McDougall|
I wrote this little function for [Gate One](http://vimeo.com/24857127) (a web-based terminal emulator/SSH client)... It converts strings in the format of <num><character> into timedelta objects. It's not rocket science but maybe it'll save someone a few keystrokes :). Besides that, it comes with a really nice Sphinx-ready (reStructuredText) docstring with complete doctests.
Python newbies will often make the following mistake (I certainly have =):
>>> test = """this is a test:
... tis the season for mistakes."""
>>> for line in test.split('\n'):
Python Minifier: Reduces the size of Python code for use on embedded platforms. Performs the following:
Removes blank lines.
Minimizes code indentation.
This code lets you store all of your static website content inside a gzipped tarball while transparently serving it to HTTP clients on-demand. Perfect for embedded systems where space is limited.
The MethodDispatcher is a subclass of tornado.web.RequestHandler that will use
the methods contained in subclasses of MethodDispatcher to handle requests. In
other words, instead of having to make a new RequestHandler class for every...
All files and free downloads are copyright of their respective owners. We do not provide any hacked, cracked, illegal, pirated version of scripts, codes, components downloads. All files are downloaded from the publishers website, our file servers or download mirrors. Always Virus check files downloaded from the web specially zip, rar, exe, trial, full versions etc. Download links from rapidshare, depositfiles, megaupload etc not published.