[issue20099] a new idea

Ezio Melotti report at bugs.python.org
Tue Dec 31 16:30:49 CET 2013


Ezio Melotti added the comment:

You should propose this to the python-ideas mailing list, but from your description is not clear to me what you want.
Can you try to explain it more in detail?
Are you asking for a new function that accepts the name of a variable as a string and prints its value?  Or for a function that creates dynamically a new "variable name"?

If you want to dynamically create variable names, it's better to just use a dictionary instead, e.g.:
d = {}
for count in range(1, 9):
    name = 'a' + str(count)
    d[name] = 'black queen'

----------
nosy: +ezio.melotti
status: open -> pending
versions: +Python 3.5 -Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20099>
_______________________________________


More information about the Python-bugs-list mailing list