[Python-ideas] dir with a glob?

Nick Coghlan ncoghlan at gmail.com
Thu Jun 30 15:36:39 CEST 2011

On Thu, Jun 30, 2011 at 11:27 PM, Sturla Molden <sturla at molden.no> wrote:
> What I am asking is if the need to filter the output from dir is so common
> that it could warrant a change to Python?

No, if an object is complicated enough that pprint(dir(obj)) and
help(obj) aren't adequate to explore it, then it is time to go read
the documentation (or the source, if the documentation is lacking).

The interactive prompt is just one of the available tools for code
exploration, it doesn't make sense to try to make it do everything.


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-ideas mailing list