Mark Dickinson added the comment: Sorry; that was a bit terse. To elaborate: on the first iteration of your for loop in the 'encrypt' function, you're correct that letters has type 'list'. But on the second iteration, it'll have type 'str', because the line "letters=doQuadraticDistortion(letters)" returns a string. Try moving the asserts inside the for loop and you'll see them fail.
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17466> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com