I've seen 'nmspc' being used in the __init__ and __new__ methods of a metaclass in Python. What does 'nmspc' stand for?
class SimpleMeta1(type):
def __init__(cls, name, bases, nmspc):
super(SimpleMeta1, cls).__init__(name, bases, nmspc)
cls.uses_metaclass = lambda self : "Yes!"
The arguments of
__init__and__new__are the same as the parameters of thetypefunction:where the third parameter contains a dictionary with all methods or class variables defined inside the
class-Block. As this is the "Namespace" of the class, someone might name itnmspc, for me, a name should be clear to the reader, so some vowels would be nice.