Named code blockes

Steve Holden sholden at holdenweb.com
Wed Apr 25 15:05:43 EDT 2001


"Tim Peters" <tim.one at home.com> wrote in ...
> >> I count four ways ('import', 'def', '=', and augmented assignment), not
> >> counting 'globals().set' and similar tricks.
>
> > Then there's class. I count five ways ...
>
> Plus implicit assignment to formal parameter names upon function entry,
> explicit assignment due to appearance as a for-loop target, and
conditional
> assignment in the (optional) second position of an "except" clause.
There!
> Now you're done.
>
> > nobody-expects-the-spanish-inquisition-ly y'rs  - steve
>
> they-would-if-they-read-the-reference-manual<wink>-ly y'rs  - tim
>
I wouldn't dare disagree. I suppose you *do* realise you've just reduced a
feeble long-running thread to a single post?

regards
 StevE





More information about the Python-list mailing list