5 ms·
Nice. I usually fall back to dir() as my first inspection tool at the command line.
by tclancy 2y ago
Nice. I usually fall back to dir() as my first inspection tool at the command line.
- mdaniel 2y agoor its awesome two friends: locals() and globals() to see their names and values simultaneously; I've gotten a lot of mileage out of that as a pseudo-debugger when the only insight you have is a logger in production
- kstrauser 2y agoDon't forget `vars()`.
- analog31 2y agoI bounce back and forth. First dir() then help()...
- bayesianbot 2y agoI used to, but wat offers a better printout of the methods: https://github.com/igrek51/wat https://github.com/igrek51/wat
- infamia 2y agovars() is another good one if you're looking for something with a particular value.