Re: updating local()
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: updating local()

From: Flavio <fccoelho@gmail.com>
Date: Thu Oct 06 2005 - 16:04:08 CEST

Ok, its not thousands, but more like dozens of variables...
I am reading a large form from the web which returns a lot of values.
(I am Using cherrypy)

I know I could pass these variables around as:

def some_function(**variables):
    ...

some_function(**variables)

but its a pain in the neck to have to refer to them as
variables['whatever']...

dont you think?

Flavio
Received on Sat Oct 15 04:13:14 2005