MCPcopy Create free account
hub / github.com/dblalock/bolt / __init__

Method __init__

experiments/python/pyience.py:37–44  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

35 parameter value"""
36
37 def __init__(self, *args):
38 if args is None or len(args) < 1:
39 raise ValueError("No options given!")
40
41 if len(args) == 1 and hasattr(args, '__len__'):
42 self.values = args[0] # given a list
43 else:
44 self.values = args # given individual objects
45
46 def __len__(self):
47 return len(self.values)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected