background preloader

Python

Facebook Twitter

Stemming 1.0. Python implementations of various stemming algorithms.

stemming 1.0

Latest Version: 1.0.1 Python implementations of the Porter, Porter2, Paice-Husk, and Lovins stemming algorithms for English. Jinja2 (template languate) documentation. Jinja2 is a modern and designer friendly templating language for Python, modelled after Django’s templates.

Jinja2 (template languate) documentation

It is fast, widely used and secure with the optional sandboxed template execution environment: <title>{% block title %}{% endblock %}</title><ul>{% for user in users %} <li><a href="{{ user.url }}">{{ user.username }}</a></li>{% endfor %}</ul> Features: sandboxed executionpowerful automatic HTML escaping system for XSS preventiontemplate inheritancecompiles down to the optimal python code just in timeoptional ahead of time template compilationeasy to debug. Virtualenv dev documentation. Python v2.7.3 documentation. Style Guide for Python Code. Code should be written in a way that does not disadvantage other implementations of Python (PyPy, Jython, IronPython, Cython, Psyco, and such).For example, do not rely on CPython's efficient implementation of in-place string concatenation for statements in the form a += b or a = a + b.

Style Guide for Python Code

This optimization is fragile even in CPython (it only works for some types) and isn't present at all in implementations that don't use refcounting. In performance sensitive parts of the library, the ''.join() form should be used instead.