pylint #76626 false W0602 Using global for 'io' but no assignment is done [open]
#!/usr/bin/env python
def setup():
# generates "Using global for 'io' but no assignment is done", although global io is in fact changed by import .. as. | |
priority | normal |
---|---|
type | bug |
done in | <not specified> |
closed by | <not specified> |
Comments
-
2012/06/20 09:32, written by anon
-
2012/06/20 10:30, written by anon
add commentWell same is true if you use global for a list and add / remove items from that list...
list add/remove is irrelevant as in that case name does not need to be global