summaryrefslogtreecommitdiff
path: root/examples/dynamic_dict
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-01-19 00:53:12 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2010-01-19 00:53:12 +0000
commit40f8aadd582776524d3b98da1f577c2fc95619e7 (patch)
tree753eec3802734f397953976824a252bb60829189 /examples/dynamic_dict
parent56fe538cc7d81ce264fc6504feb1ead5e17d0f55 (diff)
downloadsqlalchemy-40f8aadd582776524d3b98da1f577c2fc95619e7.tar.gz
- mega example cleanup
- added READMEs to all examples in each __init__.py and added to sphinx documentation - added versioning example - removed vertical/vertical.py, the dictlikes are more straightforward
Diffstat (limited to 'examples/dynamic_dict')
-rw-r--r--examples/dynamic_dict/__init__.py5
-rw-r--r--examples/dynamic_dict/dynamic_dict.py9
2 files changed, 5 insertions, 9 deletions
diff --git a/examples/dynamic_dict/__init__.py b/examples/dynamic_dict/__init__.py
index e69de29bb..69ac40952 100644
--- a/examples/dynamic_dict/__init__.py
+++ b/examples/dynamic_dict/__init__.py
@@ -0,0 +1,5 @@
+"""Illustrates how to place a dictionary-like facade on top of a "dynamic" relation, so
+that dictionary operations (assuming simple string keys) can operate upon a large
+collection without loading the full collection at once.
+
+""" \ No newline at end of file
diff --git a/examples/dynamic_dict/dynamic_dict.py b/examples/dynamic_dict/dynamic_dict.py
index f58c19c00..d94c2426a 100644
--- a/examples/dynamic_dict/dynamic_dict.py
+++ b/examples/dynamic_dict/dynamic_dict.py
@@ -1,12 +1,3 @@
-"""Illustrates how to place a dictionary-like facade on top of a dynamic_loader, so
-that dictionary operations (assuming simple string keys) can operate upon a large
-collection without loading the full collection at once.
-
-Similar approaches could be taken towards sets and dictionaries with non-string keys
-although the hash policy of the members would need to be distilled into a filter() criterion.
-
-"""
-
class ProxyDict(object):
def __init__(self, parent, collection_name, childclass, keyname):
self.parent = parent