Enumeration of strings and export of the constants
lnenov
lnenov at mm-sol.com
Thu Nov 11 04:52:52 EST 2010
On 11/10/2010 11:19 PM, Emile van Sebille wrote:
> On 11/10/2010 5:12 AM lnenov said...
>> Hi,
>>
>> 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 : )
~Lyudmil
More information about the Python-list
mailing list