[issue24003] variable naming

2015-04-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug. while is a keyword, it is part of Python's syntax, and you are not permitted to use keywords as variable names. This is not an accident, but a deliberate decision. -- nosy: +steven.daprano resolution: - not a bug status: open -

[issue24003] variable naming

2015-04-19 Thread john kaiser
New submission from john kaiser: found error when naming variables with basic functions how to replicate while=123 #while should be treated as variable name while True: #this should be treated as a function print while #this should be as a variable name result: File C:\Users\_you

[issue24003] variable naming

2015-04-19 Thread Ned Deily
Ned Deily added the comment: (... and is documented in The Python 3 and 2 Language Reference manuals: https://docs.python.org/3/reference/lexical_analysis.html#keywords and https://docs.python.org/2/reference/lexical_analysis.html#keywords) -- nosy: +ned.deily

[issue24003] variable naming

2015-04-19 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24003 ___ ___ Python-bugs-list