Quote:
Originally Posted by PeterT
Unlike many programming tools that use BEGIN / END or { } to group together sections of code, Python uses spaces or indentation to make the same sections of code.
|
And to explain further: In the case of a recipe, the print_version code has to be part of the AvancedUserRecipe group of code ("class"). The originally posted recipe had def print version at the same level of indent as AvancedUserRecipe, so it wasn't part of the recipe class and wasn't being processed. It was being ignored.