Strictly enforce str message type in producer.send_messages

Raise TypeError in kafka.producer.send_messages if any msg is not a str (or subclass)
Improve documentation
Add producer unit test
No. It has to be iterable. We had a major production bug that arose from passing 2-3mb strings in.  Millions and millions of single character messages. ;-)

-Mark

> On Aug 26, 2014, at 15:41, Dana Powers <notifications@github.com> wrote:
> 
> In kafka/producer.py:
> 
> >          """
> > +
> > +        # Raise TypeError if any message is not encoded as a str
> > +        for m in msg:
> isn't msg guaranteed to be a list due to the (.., *msg) function signature? checking that obviously wouldnt hurt though
> 
> —
> Reply to this email directly or view it on GitHub.