[Python-ideas] Namespace creation with syntax short form
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Feb 13 23:17:58 CET 2015
Morten Z wrote:
> Namespaces are widely used in Python, but it appear that creating a
> namespace
> has no short form,
Most of the time people create dedicated classes for their
namespaces, though. It's very rare to see the use of an
ad-hoc namespace such as SimpleNamespace provides.
It seems to me like a feature that novice programmers
think they want, until they learn that there are better
ways of going about it.
--
Greg
More information about the Python-ideas
mailing list