PEP 255: Simple Generators, Revised Posting

Rainer Deyke root at
Mon Jun 25 11:58:30 EDT 2001

"Bernhard Herzog" <bh at> wrote in message
news:6qk8203myt.fsf at
> > def emptyg():
> >     return
> >     yield None  # never reached
> Only until the compiler becomes smart enough to remove that unreachable
> yield statement. :)

By that time, the compiler will hopefully be smart enough to perform static
analysis *before* removing dead code.

Rainer Deyke (root at
Shareware computer games           - 
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor

More information about the Python-list mailing list