Little Q: how to print a variable's name, not its value?

Cameron Laird claird at lairds.us
Tue Mar 29 20:08:04 CEST 2005


In article <mailman.1017.1112113429.1799.python-list at python.org>,
Bill Mill  <bill.mill at gmail.com> wrote:
			.
			.
			.
>(i.e. I respectfully disagree that mixing data with program code is a bad idea)
			.
			.
			.
Most applications (as opposed to "system") developers should be doing
it rarely.  VERY often when they seem inclined to do so, it's just a
symptom of a confused design.

In no way do I mean to restrict knowledgeable metaclass authors, LISPers,
debugger inventors, or other legitimate exceptions to my claim.



More information about the Python-list mailing list