Search

Home > Python Bytes > #18 Python 3 has some amazing types and you can now constructively insult your shell!
Podcast: Python Bytes
Episode:

#18 Python 3 has some amazing types and you can now constructively insult your shell!

Category: Technology
Duration: 00:18:27
Publish Date: 2017-03-21 03:00:00
Description:

#1 Brian: pdir2

  • Nice use of animated gif to showcase what it does.
  • It’s a replacement for dir() to use interactively.
  • pip install pdir2 , but import pdir .
  • pdir(something) gives you all that dir() does, but splits things into categories like exceptions, functions, attributes, …
  • each item on one line, and includes the first line of the docstring for the item.
  • Also, uses colors nicely. (Except I need to run it in a shell with non-black background on my mac or I can’t see the docstring output. )
  • Hugely useful if you use dir() interactively.
Total Play: 0

Some more Podcasts by Michael Kennedy

500+ Episodes
Talk Python .. 300+     50+