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

Steven D'Aprano steve+comp.lang.python at pearwood.info
Tue Dec 1 02:57:08 EST 2015


On Tuesday 01 December 2015 18:22, eryk sun wrote:

> On Mon, Nov 30, 2015 at 7:00 PM, Steven D'Aprano <steve at pearwood.info>
> wrote:
>> Either way, vars() doesn't solve the problem. What problem does it solve?
> 
> vars() used to be the way to list local variables.

Oh, snap! Nice bit of detective work. So it's basically a left-over from 
when dinosaurs roamed the earth.



-- 
Steve




More information about the Python-list mailing list