Because I really like to use Python interactive mode when I write scripts, I made my own version
of the dir function, because the standard dir function, while being very useful, is somewhat inconvenient.
I wrote it in a way that makes it possible to utilize it on Python 2 and 3. I tested it on
Linux terminal, Windows command line and in IDLE.
Some screens with examples:
Linux Python 2.7
Linux Python 3.5
The width of a column is always adjusted to the longest name in that particular column.
The dunder methods are sorted separately from the rest.
If you want the option of fast import of this function, you should add it to
your libraries. In my case it's /usr/lib/python2.7, /usr/lib/python3.5 or C:\Python34\Lib in Windows.
Github Formatted dir (Python)