This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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() |
NewerOlder