datastax/python-driver — pull request #94 by JeremyOT (2014-03-18 05:01:40+00:00)
Title: fix prepared statements in batch requests

This patch contains the following:

1. Fix detection of prepared statements in batch requests - both the statement and query_id are instances of `basestring` so detection with `isinstance()` failed. Now `prepared` is explicitly stored when the statement is added.
2. Finish prepared statement serialization
3. Fix `BatchStatement.__str__()`