Enumeration of strings and export of the constants
lnenov at mm-sol.com
Thu Nov 11 10:52:52 CET 2010
On 11/10/2010 11:19 PM, Emile van Sebille wrote:
> On 11/10/2010 5:12 AM lnenov said...
>> I need to enumerate a couple hundred strings to constants and export
>> them to another module(s) globals.
> Do they really need to be globals? Why not a constants in an
> object/container that would neither pollute the global namespace nor
> risk being shadowed by subsequent inadvertent name conflict?
It is ment for testing purposes and would be used mainly in interactive
mode. This would save some typing : )
More information about the Python-list