Documentation update for properties.

This commit is contained in:
Kenneth Reitz
2010-09-20 21:37:08 -04:00
parent 31e4c39762
commit dd13744c92
+4 -4
View File
@@ -70,7 +70,7 @@ JSON!
+++++
::
>>> print data.json()
>>> print data.json
[
{
"last_name": "Adams",
@@ -89,7 +89,7 @@ YAML!
+++++
::
>>> print data.yaml()
>>> print data.yaml
- {age: 90, first_name: John, last_name: Adams}
- {age: 83, first_name: Henry, last_name: Ford}
@@ -97,7 +97,7 @@ CSV...
++++++
::
>>> print data.csv()
>>> print data.csv
first_name,last_name,age
John,Adams,90
Henry,Ford,83
@@ -106,7 +106,7 @@ EXCEL!
++++++
::
>>> data.xls('people.xls')
>>> open('people.xls', 'wb').write(data.xls)
It's that easy.