| Tor Norbye | 3a2425a | 2013-11-04 10:16:08 -0800 | [diff] [blame^] | 1 | class A(B): |
| 2 | def __init__(self): |
| 3 | <warning descr="Python version 2.4, 2.5, 2.6, 2.7 do not support this syntax. super() should have arguments in Python 2">super()</warning> |
| 4 | |
| 5 | <warning descr="Python version 3.1, 3.2, 3.3 do not have method cmp">cmp()</warning> |
| 6 | <warning descr="Python version 3.0, 3.1, 3.2, 3.3 do not have method reduce">reduce()</warning> |
| 7 | <warning descr="Python version 2.4 does not have method all">all()</warning> |
| 8 | |
| 9 | <warning descr="Python version 3.0, 3.1, 3.2, 3.3 do not have method buffer">buffer()</warning> |
| 10 | |
| 11 | def foo(a,b,c): |
| 12 | print (a,b,c) |
| 13 | |
| 14 | args=['b'] |
| 15 | foo('a', c='c', *args) # OK |
| 16 | foo('a', *args, <warning descr="Python version < 2.6 doesn't support this syntax. Named parameter cannot appear past *arg or **kwarg.">c='c'</warning>) # Not OK |