getmro.py
This commit is contained in:
parent
8f865c3228
commit
e78b5b9dea
2 changed files with 15 additions and 0 deletions
12
python-temel/getmro.py
Normal file
12
python-temel/getmro.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import inspect
|
||||||
|
|
||||||
|
class A:
|
||||||
|
pass
|
||||||
|
|
||||||
|
class B:
|
||||||
|
pass
|
||||||
|
|
||||||
|
class C(A, B):
|
||||||
|
pass
|
||||||
|
|
||||||
|
print(inspect.getmro(C))
|
3
python-temel/getmro.py~
Normal file
3
python-temel/getmro.py~
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import inspect
|
||||||
|
|
||||||
|
print(inspect.getmro(C))
|
Loading…
Reference in a new issue