silly-helicopter-28430
03/13/2024, 5:37 PMraise AssertionError(f"{attr_name} not available as a parameter in Flyte context - are you in right task-type?")
AssertionError: __GETSTATE__ not available as a parameter in Flyte context - are you in right task-type?
hundreds-gpu-71155
03/13/2024, 5:45 PM__get_state__
and Pulumi is raising an assertion error instead of raising an Attribute Error?silly-helicopter-28430
03/13/2024, 5:46 PMhundreds-gpu-71155
03/13/2024, 5:46 PMhundreds-gpu-71155
03/13/2024, 5:47 PM__getattr__
/ __getattribute__
and is handling missing attributes wronghundreds-gpu-71155
03/13/2024, 5:47 PMsilly-helicopter-28430
03/13/2024, 6:30 PMimport pickle
def get_bar(foo=None):
class Bar(object):
def __init__(self):
self.foo = foo
return Bar
class Foo(object):
def __init__(self):
self.bar = get_bar(foo=self)
my_object = Foo()
my_pickled_object = pickle.dumps(my_object) # Pickling the object
print(f"This is my pickled object:\n{my_pickled_object}\n")
hundreds-gpu-71155
03/13/2024, 6:31 PMhundreds-gpu-71155
03/13/2024, 6:33 PMhundreds-gpu-71155
03/13/2024, 6:43 PM