Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __getattribute__(self, name):
if name == 'run' and self.count == 0:
self.count = 1
self.switch(43)
return greenlet.__getattribute__(self, name)
def run(self, value):
def __getattribute__(self, name):
try:
raise Exception()
except:
pass
return greenlet.__getattribute__(self, name)
g = mygreenlet(lambda: None)
def __getattribute__(self, name):
if name == 'run':
self.parent = another[0]
return greenlet.__getattribute__(self, name)
g = convoluted(lambda: None)