Open spacebuoy opened 6 years ago
LazyObject even works in dict, delays as expected:
meta = { 'some items': blah, 'Test': { 're5': LazyObject(lambda: Meta.compile1(b'^(?:def|class) '), locals(), "meta['Test']['re5']"), }, }
Is it safe to include LazyObject in dict creation?
Hi @spacebuoy - yes, this is totally safe.
@scopatz it is not "totally save":
LazyObject even works in dict, delays as expected:
meta = { 'some items': blah, 'Test': { 're5': LazyObject(lambda: Meta.compile1(b'^(?:def|class) '), locals(), "meta['Test']['re5']"), }, }
Is it safe to include LazyObject in dict creation?