Python#

New Script Skeleton#

#!/usr/bin/python
# vim: set fileencoding=utf-8 :

This is all you need to make an executable python module that defines UTF-8 as it’s default encoding for both vim and python. Download it here.

Packages#

… are just directories with an __init__.py file in them:

# vim: set fileencoding=utf-8 :
import package
def f(x):
    pass
__all__ = ['package', 'f']

Logging#

See https://gist.github.com/felixhummel/a0451e136ac9b21e931e27ba751375bc