Decorator

Chris Angelico rosuav at gmail.com
Thu Feb 9 18:35:28 EST 2017


On Fri, Feb 10, 2017 at 10:18 AM, Terry Reedy <tjreedy at udel.edu> wrote:
> Perhaps "There are also cases in which evaluating 'fi(arg)' before rather
> than after the def statement makes a difference." should be added.

Perhaps not. The word "roughly" covers the odd edge cases, and Python
has a general principle of evaluating top-to-bottom, left-to-right
[1], which covers this situation.

ChrisA

[1] if not a conditional expression, else inside-to-outside



More information about the Python-list mailing list