R. David Murray added the comment:

The statement in question causes the compiler to make 'tags' a local variable 
in the function, and thus you get the error on the assignment.  See 
https://docs.python.org/3/faq/programming.html#id8.

----------
nosy: +r.david.murray
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28606>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to