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

#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.
  • 😞 Readme is in markdown, pypi still can’t handle that well. Maybe a listener can do a pull request on it to spiff up the pypi page: https://pypi.python.org/pypi/pdir2
  • Consider pairing this with ptpython

Full details

What is Python Bytes?

Python Bytes is a weekly podcast hosted by Michael Kennedy and Brian Okken. Python Bytes podcast delivers headlines directly to your earbuds. If you want to stay up on the Python developer news but don't have time to scour reddit, twitter, and other news sources, just subscribe and you'll get the best picks delivered weekly.

Have feedback for the show? Send it to contact_pythonbytes@talkpython.fm. We'd love to hear from you.

Michael Kennedy
Brian Okken

What listeners think

Just wanted to let you guys know how much I enjoy your new podcast. These BYTE sized chunks of news is a great concept and keeps me up to date.
Leonardo Vega
The newest in Python
This is how I get the newest python news each week.
Marius Longsword
Thank you
Keep up the great work!!!
Joshuiagio
Do you love the show and want to tell the world?
Send us a review or post one on iTunes. Thanks!

Suggest a headline

We are always on the look out for topics to cover on Python Bytes. We could use your help!

Do you have a great idea or item to feature on the show? Send us an email!