close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
- Timestamp:
-
Nov 8, 2009, 12:14:47 PM (15 years ago)
- Author:
-
cmlenz
- Comment:
-
s/JSON/pickle
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v4
|
v5
|
|
27 | 27 | }}} |
28 | 28 | |
29 | | Because all session data is serialized to [http://json.org/ JSON] for transmission, only the basic data types supported by JSON are allowed: strings, integers, floats, and booleans, as well as lists and dictionaries. I consider this an advantage, as it forces you to decouple session data from the classes and data structures used in the application code. Also, the JSON serialization is often significantly more compact than e.g. `pickle`. |
| 29 | Data stored in the session needs to serializable using the Python `pickle` mechanism. |
30 | 30 | |
31 | 31 | == API Documentation == |