generators in __init__.py file — Python

Gateway to home © Diane Khambu
control-flow diagram of how to structure code in __init__.py file
directory structure for generator example in __init__.py file
In continue_cube_calculation method
Hello World from package_1
PRODUCT_SO_FAR: 120
PRODUCT_SO_FAR in package_2: 40320
Hello World from package_1
PRODUCT_SO_FAR: 120
In continue_cube_calculation method
PRODUCT_SO_FAR in package_2: 336
Hello World from package_1
PRODUCT_SO_FAR: 120
Inside continue_cube_calculation
PRODUCT_SO_FAR in package_2: 40320
Hello World from package_1
PRODUCT_SO_FAR: 120
Inside continue_cube_calculation
Hello World from package_1
PRODUCT_SO_FAR: 120
PRODUCT_SO_FAR in package_2: 40320
Hello World from package_3
1
8
27
64
125
216
In the yield_values function
Hello World from package_3
1
8
27
64
125
216
1
8
27
64
125
216
In the yield_values function
1
8
27
64
125
216

--

--

Software Engineer

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