Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python namedtuple typename

It gives a "type" attribute to your named tuple.
Point=namedtuple('whatsmypurpose',['x','y'], verbose=True)
>>>type(Point)
"whatsmypurpose"
 
PREVIOUS NEXT
Tagged: #python #namedtuple #typename
ADD COMMENT
Topic
Name
1+9 =