Preámbulo, definición del contexto y advertencias

class AntimatterCondenser(object):
def __init__(self):
self.__needs_to_send_report = False
def condense(self, container):
self.__purify(container)
self.__heat(container)
# ... some other actions
if self.__needs_to_send_report:
self.__send_report()
def __purify(self, container):
# ... do stuff
if contamination_found:
self.__needs_to_send_report = True
def __heat(self, container):
#…

Introduction

Carles Climent

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store