Antoine Pitrou <pitrou at free.fr> added the comment: Perhaps adding a comment before those two lines would make the reason for the cast clearer. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue13496> _______________________________________