Is vars() the most useless Python built-in ever?

Serhiy Storchaka storchaka at gmail.com
Wed Dec 2 03:22:05 EST 2015


On 01.12.15 03:00, Steven D'Aprano wrote:
> I'm trying to understand why vars() exists. Does anyone use it?

I use vars() exclusively for introspection in interactive environment. 
As well as dir() and help(). Sad that it doesn't work with __slots__.





More information about the Python-list mailing list