Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import getpass
import os
import sys
## Application specific
SDK_DIR = '/usr/local/google_appengine'
APP_DIR = '/home/username/src/app'
APPID = 'something-awesome'
"""
A listagent is a factory to conveniently instanstiating sliceagents.
A sliceagent can access and mutate an original list "live": it never
creates any copy of the original and only refers to it via "address
translation" -- normalizing its indices by the size of the original list on
every operation.
>>> x = [22, 7, 2, -5, 8, 4]
>>> listagent(x)[1:].sort()