mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-25 06:18:32 +07:00
16 lines
778 B
Python
16 lines
778 B
Python
class A(B):
|
|
def __init__(self):
|
|
<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>
|
|
|
|
<warning descr="Python version 3.0, 3.1, 3.2, 3.3, 3.4, 3.5 do not have method cmp">cmp()</warning>
|
|
<warning descr="Python version 3.0, 3.1, 3.2, 3.3, 3.4, 3.5 do not have method reduce">reduce()</warning>
|
|
<warning descr="Python version 2.4 does not have method all">all()</warning>
|
|
|
|
<warning descr="Python version 3.0, 3.1, 3.2, 3.3, 3.4, 3.5 do not have method buffer">buffer()</warning>
|
|
|
|
def foo(a,b,c):
|
|
print (a,b,c)
|
|
|
|
args=['b']
|
|
foo('a', c='c', *args) # OK
|
|
foo('a', *args, <warning descr="Python versions < 2.6 do not allow keyword arguments after *expression">c='c'</warning>) # Not OK |