[issue45288] Inspect - Added sort_result parameter on getmembers function.

2021-09-27 Thread Cristobal Riaga
Cristobal Riaga added the comment: That worked , thank you for your time and answer. I will keep working on PyAPIReference. Also I will close the pull request I created on GitHub. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45288] Inspect - Added sort_result parameter on getmembers function.

2021-09-27 Thread Cristobal Riaga
Cristobal Riaga 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

[issue45288] Inspect - Added sort_result parameter on getmembers function.

2021-09-26 Thread Cristobal Riaga
Cristobal Riaga added the comment: So there is no way to get members in the order you defined them? -- ___ Python tracker <https://bugs.python.org/issue45

[issue45288] Inspect - Added sort_result parameter on getmembers function.

2021-09-26 Thread Cristobal Riaga
Cristobal Riaga added the comment: So there is no way to get the members in order? -- ___ Python tracker <https://bugs.python.org/issue45288> ___ ___ Python-bug

[issue45288] Inspect - Added sort_result parameter on getmembers function.

2021-09-25 Thread Cristobal Riaga
Cristobal Riaga added the comment: Added sort_result parameter (bool=True) on getmembers function inside Lib/inspect.py, that, as it name says, allows you to getmembers result without sorting it. I'm needed of this and it seems impossible to achieve because of 367 line: results.sort(key

[issue45288] Inspect - Added sort_result parameter on getmembers function.

2021-09-25 Thread Cristobal Riaga
New submission from Cristobal Riaga : Added `sort_result` parameter (`bool=True`) on `getmembers` function inside `Lib/inspect.py`, that, as it name says, allows you to `getmembers` result without sorting it. I'm needed of this and it seems impossible to achieve because of [`367` line