
July 1, 2011
6:17 a.m.
Sturla Molden wrote:
Often when exploring an object with the 'dir' function, particularly in large packages like SciPy, I find that I need to filter the outout. Since a dir reminds me of a dos 'dir' or linux 'ls', a glob feels like the most natural to use.
I have added a recipe for this here: http://code.activestate.com/recipes/577774-enhancing-dir-with-globs/ Comments and improvements welcome. -- Steven