toastdriven/pysolr — pull request #81 by timsavage (2013-04-16 04:38:11+00:00)
Title: Modification to the Solr.add method to allow a generator expression to be used for the docs variable.

Internally the method calls len(docs) to get a count of the number of docs added to Solr (for logging purposes). Generator expressions do not have a __len__ method an error is raised if used.