Addressing the question for variable variables in python (i.e. variables with variable names), which has been posed on stackoverflow: http://stackoverflow.com/questions/1373164/how-do-i-do-variable-variables-in-python

The consensus is to use a dictionary for this. This is a good idead, however, there are many aspects arising from this:

* you'll yourself be responsible for this dictionary, including garbage collection (of in-dict variables) etc.
* there's no locality for variable variables, all are global within the dictionary, unless you locally define different dictionaries for this purpose
* you are more flexible, e.g. you can decide to overwrite existing variables or, alternatively, to raise an exception on overwriting (e.g. for const variables)
* if you want to rename a variable name, you'll have to do it manually
* ...

Please Find some examples in the Wiki

Project Activity

See All Activity >

License

GNU General Public License version 3.0 (GPLv3)

Follow Python Variable Variables Manager

Python Variable Variables Manager Web Site

Other Useful Business Software
Incredable is the first DLT-secured platform that allows you to save time, eliminate errors, and ensure your organization is compliant all in one place. Icon
Incredable is the first DLT-secured platform that allows you to save time, eliminate errors, and ensure your organization is compliant all in one place.

For healthcare Providers and Facilities

Incredable streamlines and simplifies the complex process of medical credentialing for hospitals and medical facilities, helping you save valuable time, reduce costs, and minimize risks. With Incredable, you can effortlessly manage all your healthcare providers and their credentials within a single, unified platform. Our state-of-the-art technology ensures top-notch data security, giving you peace of mind.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Python Variable Variables Manager!

Additional Project Details

Intended Audience

Developers, Engineering

Programming Language

Python

Related Categories

Python Data Formats Software, Python Software Development Software, Python QA Automation Software

Registered

2016-06-08