summaryrefslogtreecommitdiff
path: root/tablib
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2011-02-18 02:59:07 -0500
committerKenneth Reitz <me@kennethreitz.com>2011-02-18 02:59:07 -0500
commit52e307ea3518c42f6946bdf87be728b8bcb05a38 (patch)
treee3bdbe6335706eaaa33204bcb3e23391ac221fb4 /tablib
parent5cac9bd97e519a44b75217a82051f63a57a42a4c (diff)
downloadtablib-52e307ea3518c42f6946bdf87be728b8bcb05a38.tar.gz
Docstring update
Diffstat (limited to 'tablib')
-rw-r--r--tablib/core.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tablib/core.py b/tablib/core.py
index 7f2d604..66e85dc 100644
--- a/tablib/core.py
+++ b/tablib/core.py
@@ -305,11 +305,11 @@ class Dataset(object):
headers = property(_get_headers, _set_headers)
def _get_dict(self):
- """A JSON representation of the :class:`Dataset` object. If headers have been
- set, a JSON list of objects will be returned. If no headers have
- been set, a JSON list of lists (rows) will be returned instead.
+ """A native Python representation of the :class:`Dataset` object. If headers have
+ been set, a list of Python dictionaries will be returned. If no headers have been set,
+ a list of tuples (rows) will be returned instead.
- A dataset object can also be imported by setting the `Dataset.json` attribute: ::
+ A dataset object can also be imported by setting the `Dataset.dict` attribute: ::
data = tablib.Dataset()
data.json = '[{"last_name": "Adams","age": 90,"first_name": "John"}]'