Files
openide/python/testData/highlighting/unsupportedFeaturesInPython3.py
T
Ekaterina Tuzova ab9622ffc6 fixed PY-9274 Broken raw bytes literal parsing for Python 3.3
refactored lexer, added compatibility warnings, quickfix to remove not only U prefix
2013-03-29 16:44:08 +04:00

27 lines
1.2 KiB
Python

print(<error descr="Python version 3.0 does not support <>, use != instead.">a <> 3</error>)
<error descr="Python version 3.0 does not support backquotes, use repr() instead">`foo()`</error>
a = <error descr="Python version 3.0 does not support a trailing 'l' or 'L'.">123l</error>
a = <error descr="Python version 3.0 does not support this syntax. It requires '0o' prefix for octal literals">043</error>
a = 0X43
a = 0b1
a = 0.0
s = <error descr="Python version 3.0 does not support a 'U' prefix">u</error>"text"
<error descr="Python version 3.0 does not support this syntax.">raise a, b, c</error>
<error descr="Python version 3.0 does not support this syntax.">raise a, b</error>
try:
pass
<error descr="Python version 3.0 does not support this syntax.">except a, name:
pass</error>
[x * 2 for x in <error descr="Python version 3.0 does not support this syntax in list comprehensions.">vec1, vec2</error>]
<error descr="Python version 3.0 does not have module __builtin__">import __builtin__</error>
<error descr="Python version 3.0 does not support this syntax. Raise with no arguments can only be used in an except block">raise</error>
try:
pass
except:
raise