[Python-ideas] inspect.getclassdistance

Paul Moore p.f.moore at gmail.com
Mon Jan 5 15:25:34 CET 2015

On 5 January 2015 at 14:05, Alexis Lee <alexisl at hp.com> wrote:
>> When would it ever be interesting?
> The usecase is here (comments at line 861, also see 866-894):
>     https://review.openstack.org/#/c/142835/5/nova/api/openstack/compute/servers.py

Why is it not simply acceptable for you to use your code? I presume
you are implying that this would be useful in the stdlib, but you'd
need far more than a single use case to justify that. And you'd need
to clarify why it would be useful to have it in 3.5+ and not in
earlier versions - presumably the code you pointed to would need to
support Python 3.4 at least, so a stdlib addition wouldn't be of any
use unless there's a reasonable probability that new code would need
something like this (and writing what seems to be a pretty trivial
function isn't a better option).


More information about the Python-ideas mailing list