From 49952a45ae9a77bcbb5d1c340212bb28490ea002 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Wed, 14 Aug 2013 02:48:10 -0300 Subject: [PATCH] add docstring to PythonItemExporter --- scrapy/contrib/exporter/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scrapy/contrib/exporter/__init__.py b/scrapy/contrib/exporter/__init__.py index 89649915c..a841eda2f 100644 --- a/scrapy/contrib/exporter/__init__.py +++ b/scrapy/contrib/exporter/__init__.py @@ -211,6 +211,11 @@ class PprintItemExporter(BaseItemExporter): self.file.write(pprint.pformat(itemdict) + '\n') class PythonItemExporter(BaseItemExporter): + """The idea behind this exporter is to have a mechanism to serialize items + to built-in python types so any serialization library (like + json, msgpack, binc, etc) can be used on top of it. Its main goal is to + seamless support what BaseItemExporter does plus nested items. + """ def serialize_field(self, field, name, value): serializer = field.get('serializer', self._serialize_value)