| Tor Norbye | 3a2425a | 2013-11-04 10:16:08 -0800 | [diff] [blame^] | 1 | print(<error descr="Python version 3.0 does not support <>, use != instead.">a <> 3</error>) |
| 2 | <error descr="Python version 3.0 does not support backquotes, use repr() instead">`foo()`</error> |
| 3 | a = <error descr="Python version 3.0 does not support a trailing 'l' or 'L'.">123l</error> |
| 4 | a = <error descr="Python version 3.0 does not support this syntax. It requires '0o' prefix for octal literals">043</error> |
| 5 | a = 0X43 |
| 6 | a = 0b1 |
| 7 | a = 0.0 |
| 8 | s = <error descr="Python version 3.0 does not support a 'U' prefix">u</error>"text" |
| 9 | <error descr="Python version 3.0 does not support this syntax.">raise a, b, c</error> |
| 10 | <error descr="Python version 3.0 does not support this syntax.">raise a, b</error> |
| 11 | |
| 12 | try: |
| 13 | pass |
| 14 | <error descr="Python version 3.0 does not support this syntax.">except a, name: |
| 15 | pass</error> |
| 16 | |
| 17 | [x * 2 for x in <error descr="Python version 3.0 does not support this syntax in list comprehensions.">vec1, vec2</error>] |
| 18 | |
| 19 | <error descr="Python version 3.0 does not have module __builtin__">import __builtin__</error> |
| 20 | |
| 21 | <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> |
| 22 | |
| 23 | try: |
| 24 | pass |
| 25 | except: |
| 26 | raise |
| 27 | |