
Feb. 13, 2015
10:19 a.m.
Namespaces are widely used in Python, but it appear that creating a namespace has no short form, like [] for list or {} for dict, but requires the lengthy types.SimpleNamespace, with prior import of types. So an idea is to make a short form with: ns = (answer= 42) Which resembles the types.SimpleNamespace(answer= 42), but leaves out a lot of typing. Syntax for an empty namespace should then be determined. Best regards, MortenZdk