[issue17466] I can't make assignments to a list.

Mark Dickinson report at bugs.python.org
Mon Mar 18 21:04:07 CET 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue17466>
_______________________________________


More information about the Python-bugs-list mailing list