Why Pythons dir function is wrong
jedidjah.ch
jedidjah.ch
There's a legacy issue here. If the Python maintainers were to respond by changing the behavior of dir(), that might break existing code, because what's being submitted is not a bug but a feature request for a different function with the same name.