Skip to content
Yao Zuo edited this page Mar 24, 2017 · 8 revisions

Welcome to the pdir2 wiki!

REPL Support

Other than default Python REPL, pdir2 support several popular REPLs in the Python world, including ipython, ptpython, bpython and Jupyter Notebook. Among these REPLs, pdir2 behaves differently in ptpython.

Normally, when you type pdir(obj) in a REPL, pdir(obj).__repr__ will be called and the string representation is returned. in ptpython, pdir(obj) does not return the string representation, instead, it prints the string representation directly then returns ''. To get the string representation, you should use the repr_str attribute. Example:

Known Issues

Currently, due to a bug in bpython, pdir2 doesn't work so well with it. I hope we can find a nice solution for this and bring satisfaction to bpython users.

Clone this wiki locally