getmro.py
This commit is contained in:
parent
8f865c3228
commit
e78b5b9dea
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 New Issue
Block a user