Open foobarlab opened 11 years ago
List of reserved keywords/identifiers from Python 2.6 docs: http://docs.python.org/2.6/reference/lexical_analysis.html#identifiers
The following words should also NOT be used either (although they are not strictly Python reserved words, they conflict with the names of commonly-used Python functions): `file, type, str`` ... see more here: http://pentangle.net/python/handbook/node52.html
Actually PyChecker reported:
upstage/pages.py:154: (str) shadows builtin
upstage/pages.py:179: (str) shadows builtin
upstage/pages.py:263: (str) shadows builtin
upstage/pages.py:1298: (type) shadows builtin
upstage/pages.py:1680: (vars) shadows builtin
upstage/pages.py:1795: (type) shadows builtin
upstage/pages.py:1812: (file) shadows builtin
upstage/stage.py:489: (type) shadows builtin
upstage/web.py:260: (type) shadows builtin
upstage/web.py:278: (file) shadows builtin
A workaround would be to either switch single letters to uppercase or to prefix with an underline...
Server code (Python) should be checked for variables using reserved and special keywords.