[issue45288] Inspect - Added sort_result parameter on getmembers function.
Cristobal Riaga
report at bugs.python.org
Mon Sep 27 18:03:52 EDT 2021
Cristobal Riaga <cristobalriaga at gmail.com> added the comment:
I'm don't really need inherit order, neither built-in members.
e.g.:
```py
a = 3 # First
class B: # Second
pass
def foo(): # Third
pass
```
Or in a more complex module:
```py
class A: # First
pass
class B: # Second
pass
class C(A, B): # Third
pass
```
The order should be:
- A (class)
- B (class)
- C (class): inherited from A and B.
Here is the link to the script I'm using to inspect a module: https://github.com/Patitotective/PyAPIReference/blob/main/PyAPIReference/inspect_object.py.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45288>
_______________________________________
More information about the Python-bugs-list
mailing list