You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
None is highlighted differently in Python 3 than in Python 2 #33
Why did this plugin's maintainers decide the highlighting group for None should be different between Python 2 and Python 3? I'm not aware of anything different in the behavior of None from Python 2 to Python 3.
Doesn't None — a builtin constant — most logically map to the Constant group, rather than Structure or (especially) Statement? (The same goes for other builtin constants like True, False, etc.)
The idea is to show differences in implementation of None. In Python 2 None is a built-in object/type and it was possible to assign to None prior to Python 2.4. In Python 3 None is a part of the grammar so it can be seen more as a statement. And the same goes for True and False.
Activity
hdima commentedon Oct 31, 2015
The idea is to show differences in implementation of
None. In Python 2Noneis a built-in object/type and it was possible to assign toNoneprior to Python 2.4. In Python 3Noneis a part of the grammar so it can be seen more as a statement. And the same goes forTrueandFalse.nfnty commentedon Mar 3, 2017
This has been fixed over at the fork vim-python/python-syntax.