MCPcopy Create free account
hub / github.com/ActiveState/code / __init__

Method __init__

recipes/Python/205451_Povray_for_python/recipe-205451.py:51–59  ·  view source on GitHub ↗
(self,name,args=[],opts=[],**kwargs)

Source from the content-addressed store, hash-verified

49
50class Item:
51 def __init__(self,name,args=[],opts=[],**kwargs):
52 self.name = name
53 args=list(args)
54 for i in range(len(args)):
55 if type(args[i]) == tuple or type(args[i]) == list:
56 args[i] = Vector(args[i])
57 self.args = args
58 self.opts = opts
59 self.kwargs=kwargs
60 def append(self, item):
61 self.opts.append( item )
62 def write(self, file):

Callers

nothing calls this directly

Calls 3

listClass · 0.85
rangeFunction · 0.85
VectorClass · 0.70

Tested by

no test coverage detected