[issue45288] Inspect - Added sort_result parameter on getmembers function.
Cristobal Riaga
report at bugs.python.org
Sat Sep 25 10:29:12 EDT 2021
Cristobal Riaga <cristobalriaga at gmail.com> 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=lambda pair: pair[0])
Any other solution is very welcomed.
(I need it because I'm working on an API Reference creator and I think it would be better if it the members are ordered in the same order you define them.)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45288>
_______________________________________
More information about the Python-bugs-list
mailing list