This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jdan
Recipients docs@python, jdan
Date 2010-08-04.18:39:45
SpamBayes Score 1.9522624e-09
Marked as misclassified No
Message-id <1280947187.21.0.503447106682.issue9515@psf.upfronthosting.co.za>
In-reply-to
Content
Perhaps it's assumed that you should know about this by knowing about how the vars dictionary is implemented, but to someone unfamiliar like me it seems like the builtin functions documentation for vars() should mention that you can create a variable name from a string using vars()['string_containing_variable_name'] = value, i.e. 

>>> vars()['hi']=3
>>> hi
3
>>>


Just to include text for a possible fix (to be appended to the existing description):

"You can create a variable name from a string using vars()['string_containing_variable_name'] = value, i.e. 

>>> vars()['hi']=3
>>> hi
3
>>>"
History
Date User Action Args
2010-08-04 18:39:47jdansetrecipients: + jdan, docs@python
2010-08-04 18:39:47jdansetmessageid: <1280947187.21.0.503447106682.issue9515@psf.upfronthosting.co.za>
2010-08-04 18:39:45jdanlinkissue9515 messages
2010-08-04 18:39:45jdancreate