getmro.py

This commit is contained in:
Mert Gör 🇹🇷 2023-07-01 23:31:07 +03:00
parent 8f865c3228
commit e78b5b9dea
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
2 changed files with 15 additions and 0 deletions

12
python-temel/getmro.py Normal file
View 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
View File

@ -0,0 +1,3 @@
import inspect
print(inspect.getmro(C))