diff options
| author | Iuri de Silvio <iurisilvio@gmail.com> | 2014-04-14 09:06:52 -0300 |
|---|---|---|
| committer | Iuri de Silvio <iurisilvio@gmail.com> | 2014-04-14 09:06:52 -0300 |
| commit | fc4cc7fa148c3e292fb33e9c07eb9e47a3e45fcf (patch) | |
| tree | c419017dddfcee570f6a03e27f202268b8242d72 | |
| parent | 56b627a561f2895d7847dd4794b1dd500916eeeb (diff) | |
| parent | 1146ec234164f08885c9550b008dcafd511cbd22 (diff) | |
| download | tablib-fc4cc7fa148c3e292fb33e9c07eb9e47a3e45fcf.tar.gz | |
Merge pull request #144 from aleasoluciones/develop
Remove `extend` from first example to make it simple.
| -rw-r--r-- | docs/index.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/index.rst b/docs/index.rst index 482cc6d..7bf1a41 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -26,8 +26,8 @@ Tablib is an :ref:`MIT Licensed <mit>` format-agnostic tabular dataset library, :: - >>> data = tablib.Dataset(headers=['First Name', 'Last Name', 'Age']) - >>> data.extend([('Kenneth', 'Reitz', 23), ('Bessie', 'Monke', 22)]) + >>> data = tablib.Dataset(*[('Kenneth', 'Reitz', 23), ('Bessie', 'Monke', 22)], + headers=['First Name', 'Last Name', 'Age']) >>> data.json [{"Last Name": "Reitz", "First Name": "Kenneth", "Age": 22}, {"Last Name": "Monke", "First Name": "Bessie", "Age": 21}] |
