2016-03-29 17:17:12 +00:00
|
|
|
"""The Code."""
|
|
|
|
|
|
|
|
|
2020-01-26 23:41:36 +00:00
|
|
|
class Service:
|
2016-03-29 17:17:12 +00:00
|
|
|
"""Some "Service"."""
|
|
|
|
|
|
|
|
|
2020-01-26 23:41:36 +00:00
|
|
|
class Client:
|
2016-03-29 17:17:12 +00:00
|
|
|
"""Some "Client" that uses "Service"."""
|
|
|
|
|
|
|
|
def __init__(self):
|
2020-01-26 19:22:43 +00:00
|
|
|
"""Initialize instance."""
|
2016-03-29 17:17:12 +00:00
|
|
|
self.service = Service() # Service instance is created inside Client
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2016-03-30 08:45:41 +00:00
|
|
|
client = Client() # Application creates Client's instance
|