If I have a class as such:
class Sample:
def __init__(self, a, b, c):
self.a = a
self.b = b
self.c = c
I can create an object by:
temp = Sample(a=100,b=100,c=100)
But what if I have:
my_str = "a=100,b=100,c=100"
How can I temp = Sample(my_str) properly?
__init__to `__init__(self , **kwds)eval. While it is simple, there are reasons whyevalis discouraged.evalis a to use , no for avoiding! it has proplems but when need must use it ,