[New-bugs-announce] [issue24003] variable naming

john kaiser report at bugs.python.org
Sun Apr 19 11:43:09 CEST 2015


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 got served_\Desktop\bugs.py", line 1
    while = 123
          ^
SyntaxError: invalid syntax

----------
files: bugs.py
messages: 241502
nosy: kaiser
priority: normal
severity: normal
status: open
title: variable naming
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file39117/bugs.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24003>
_______________________________________


More information about the New-bugs-announce mailing list